Server Error on SideBar
See original GitHub issueIssue Summary
This issue is concerning wagtail’s sidebar, when a user has been created within the CMS, the Root Page/Pages on the sidebar don’t load and the following error appears: status_code : 403
Endpoint : ...cms/api/v2beta/pages/?child_of=1&for_explorer=1
Response :
Although it works perfectly when the user has been created from the terminal as superuser which makes me think it might be related to permissions. So I tried with many different users and permissions and allowing access to the Root page too and making him an Admin, but the issue remains. The permission side of thingns still works perfectly and can be accessed by the dashboard :
Steps to Reproduce
After setting up a wagtail project with some lists and detail pages with “HomePage” as Root Parent. Structure : (Root)HomePage > (List Page) News > (Detail Page) Articles
- Create a new Permissions Group.
- Give Group Page Permission to the Root Page & News (Tried all kind of combinations).
- Create a new user under
Settings > Users > Add a User
. - When creating the user, adding it to the correspondent group.
- Login as the newly created user.
- Open sidebar and the error should appear.
Technical details
- Python version: Run 2.7.10
- Django version: 1.11.13
- Wagtail version: 2.1.11
- Browser version: Tried with Firefox 61 & Chrome 67.
Thank You in Advance !!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top GitHub Comments
@LuisJLopez I had the same issue adding wagtail to an existing project. In my case this issue was related to my
rest-framework
project configuration. If you overrode some of the following settings (children ofREST_FRAMEWORK
dictionary):DEFAULT_AUTHENTICATION_CLASSES
DEFAULT_PERMISSION_CLASSES
be sure that wagtail can use the
rest_framework.authentication.SessionAuthentication
@gasman from a fresh install there is no issue, so it must be related to the way we have setup the structure within the project, thank you for your help 😃