wagtail-nest / wagtail-ab-testing

A/B testing for Wagtail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RemovedInWagtail60Warning: UserPagePermissionsProxy.for_page() is deprecated

Stormheg opened this issue · comments

The UserPagePermissionProxy class was deprecated in Wagtail 5.1 and will be removed in Wagtail 6: https://docs.wagtail.org/en/stable/releases/5.1.html#userpagepermissionsproxy-is-deprecated

It is used here:

self.context['user_page_permissions'] = UserPagePermissionsProxy(self.request.user)

We should consider backwards compatibility with older versions of Wagtail when fixing this.