[PR #720] [MERGED] Fix permission check if user is subuser and admin #925

Closed
opened 2026-02-05 17:58:39 +03:00 by OVERLORD · 0 comments
Owner

📋 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: mainHead: fix/admin-subuser


📝 Commits (1)

  • 955ab7f fix 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.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/720 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 11/19/2024 **Status:** ✅ Merged **Merged:** 11/20/2024 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `fix/admin-subuser` --- ### 📝 Commits (1) - [`955ab7f`](https://github.com/pelican-dev/panel/commit/955ab7f9afd36d76137f292fb6a113e092f69f1d) fix permission check if user is subuser and admin ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `app/Policies/ServerPolicy.php` (+2 -2) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 17:58:39 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#925