mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #720] [MERGED] Fix permission check if user is subuser and admin #925
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/720
Author: @Boy132
Created: 11/19/2024
Status: ✅ Merged
Merged: 11/20/2024
Merged by: @Boy132
Base:
main← Head:fix/admin-subuser📝 Commits (1)
955ab7ffix permission check if user is subuser and admin📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
app/Policies/ServerPolicy.php(+2 -2)📄 Description
If a user is a subuser and has an admin role it previously only checked the subuser permissions.
Now it first checks for the subuser permission, then the admin role permissions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.