-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Description / Beschreibung
It seems that in a multisite setup, where a user with role of editor for site "foo" can also (mistakenly) see the management in site "bar".
The cause of the bug seems to be in the is_legacy_reviewer because the perms that are checked in there do only check for the is_editor and not for the is_editor_for_current_site .
In addition, also the management viewsets should be protected by higher permissions than only "is authenticated".
Expected behaviour / Erwartetes Verhalten
The management access should be site specific according to the assigned roles of the user.
Steps to reproduce / Schritte zum Reproduzieren
- Assign an editor to site Foo
- Login as that user in site Bar and see the Management in navbar
Context / Kontext
2.3.2
References / Verweise
Line 92 in 79917de
is_legacy_reviewer)) Line 97 in 79917de
rules.add_perm('auth.view_group', is_editor | is_reviewer)
rdmo/rdmo/management/viewsets.py
Line 34 in 79917de
permission_classes = (IsAuthenticated, ) rdmo/rdmo/management/viewsets.py
Line 69 in 79917de
permission_classes = (IsAuthenticated, )