Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix admin permissions #611

Open
wants to merge 3 commits into
base: xgp-3.5
Choose a base branch
from
Open

Fix admin permissions #611

wants to merge 3 commits into from

Conversation

Nipis
Copy link

@Nipis Nipis commented Sep 18, 2024

Fixed the admin panel permission system.

This fixes the following issues:

  • Operators and Super Operators were unable to view the main page of the admin panel.
  • Operators and Super Operators were unable to access areas they have permissions to. They always saw the message "You need special permissions to view this page."
  • Any user could view/edit another top-level user.
  • The level of an own account could be changed.
  • The level of another user could be changed to a higher level than the user themselves.
  • New accounts could be created from the panel with a level equal to or higher than the user's own. (Even though they can edit the account later to give it the same level, it's better this way to avoid errors when creating an account.)
  • Top levels are no longer displayed in the combobox when editing a user.
  • Own and top levels are no longer displayed in the combobox when creating a new user.

LucasKovacs and others added 2 commits June 17, 2023 12:40
Fixed the admin panel permission system.

This fixes the following issues:
- Operators and Super Operators were unable to view the main page of the admin panel.
- Operators and Super Operators were unable to access areas they have permissions to. They always saw the message "You need special permissions to view this page."
- Any user could view/edit another top-level user.
- The level of an own account could be changed.
- The level of another user could be changed to a higher level than the user themselves.
- New accounts could be created from the panel with a level equal to or higher than the user's own. (Even though they can edit the account later to give it the same level, it's better this way to avoid errors when creating an account.)
- Top levels are no longer displayed in the combobox when editing a user.
- Own and top levels are no longer displayed in the combobox when creating a new user.
@Nipis Nipis changed the base branch from master to xgp-3.5 September 18, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants