[PR #1521] [MERGED] Server Policy: Only do owner check if checking for subuser permissions #1430

Closed
opened 2026-02-04 19:46:31 +03:00 by OVERLORD · 0 comments
Owner

📋 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: mainHead: boy132/fix-owner-permissions


📝 Commits (3)

  • 4c2f6bf only do owner check if we are checking subuser permissions
  • 520c8b5 fix tests
  • 5b559e6 Merge 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.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1521 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 7/15/2025 **Status:** ✅ Merged **Merged:** 7/19/2025 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `boy132/fix-owner-permissions` --- ### 📝 Commits (3) - [`4c2f6bf`](https://github.com/pelican-dev/panel/commit/4c2f6bf3a3da757f3fe7e61485fb781fc268636c) only do owner check if we are checking subuser permissions - [`520c8b5`](https://github.com/pelican-dev/panel/commit/520c8b55fe2559559c2a44113dc935e05063dc98) fix tests - [`5b559e6`](https://github.com/pelican-dev/panel/commit/5b559e6f66e24ee913208c40be1b06b9bd82589a) Merge remote-tracking branch 'upstream/main' into boy132/fix-owner-permissions ### 📊 Changes **4 files changed** (+22 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description Closes #1520 --- <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-04 19:46:31 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1430