mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 11:20:41 +03:00
[PR #1521] [MERGED] Server Policy: Only do owner check if checking for subuser permissions #1430
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/1521
Author: @Boy132
Created: 7/15/2025
Status: ✅ Merged
Merged: 7/19/2025
Merged by: @Boy132
Base:
main← Head:boy132/fix-owner-permissions📝 Commits (3)
4c2f6bfonly do owner check if we are checking subuser permissions520c8b5fix tests5b559e6Merge remote-tracking branch 'upstream/main' into boy132/fix-owner-permissions📊 Changes
4 files changed (+22 additions, -19 deletions)
View changed files
📝
app/Http/Controllers/Api/Client/Servers/SubuserController.php(+1 -9)📝
app/Http/Requests/Api/Client/Servers/SendPowerRequest.php(+2 -1)📝
app/Models/Permission.php(+7 -0)📝
app/Policies/ServerPolicy.php(+12 -9)📄 Description
Closes #1520
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.