[PR #1961] [MERGED] Refactor subuser permissions #1675

Closed
opened 2026-02-05 18:21:04 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1961
Author: @Boy132
Created: 12/4/2025
Status: Merged
Merged: 12/11/2025
Merged by: @Boy132

Base: mainHead: boy132/refactor-subuser-permissions


📝 Commits (10+)

📊 Changes

112 files changed (+610 additions, -668 deletions)

View changed files

📝 app/Contracts/Http/ClientPermissionsRequest.php (+5 -4)
app/Enums/SubuserPermission.php (+88 -0)
📝 app/Extensions/Features/Schemas/GSLTokenSchema.php (+2 -2)
📝 app/Extensions/Features/Schemas/JavaVersionSchema.php (+2 -2)
📝 app/Filament/App/Resources/Servers/Pages/ListServers.php (+5 -5)
📝 app/Filament/Components/Actions/ExportScheduleAction.php (+2 -2)
📝 app/Filament/Components/Actions/ImportScheduleAction.php (+2 -2)
📝 app/Filament/Server/Pages/Console.php (+5 -5)
📝 app/Filament/Server/Pages/Settings.php (+9 -9)
📝 app/Filament/Server/Pages/Startup.php (+6 -6)
📝 app/Filament/Server/Resources/Allocations/AllocationResource.php (+5 -5)
📝 app/Filament/Server/Resources/Backups/BackupResource.php (+7 -7)
📝 app/Filament/Server/Resources/Databases/DatabaseResource.php (+4 -4)
📝 app/Filament/Server/Resources/Files/Pages/DownloadFiles.php (+2 -2)
📝 app/Filament/Server/Resources/Files/Pages/EditFiles.php (+4 -4)
📝 app/Filament/Server/Resources/Files/Pages/ListFiles.php (+22 -22)
📝 app/Filament/Server/Resources/Schedules/Pages/ViewSchedule.php (+2 -2)
📝 app/Filament/Server/Resources/Subusers/SubuserResource.php (+16 -8)
📝 app/Filament/Server/Widgets/ServerConsole.php (+3 -3)
📝 app/Http/Controllers/Api/Client/ClientController.php (+3 -4)

...and 80 more files

📄 Description

(Backend) Refactors for subuser permissions:

  • Removed Permissions model
  • Added enum for subuser permissions
  • Moved all permission stuff to Subuser model
  • Allow to register custom subuser permissions (closes #1923)

Permission names have not changed! So (in theory) no breaking changes for existing installs!


🔄 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/1961 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 12/4/2025 **Status:** ✅ Merged **Merged:** 12/11/2025 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `boy132/refactor-subuser-permissions` --- ### 📝 Commits (10+) - [`5fd29f8`](https://github.com/pelican-dev/panel/commit/5fd29f8230771cb9aeb5742a6c6574a16d51ebff) refactor subuser permissions - [`b51ffe4`](https://github.com/pelican-dev/panel/commit/b51ffe4b50647220de47799d0724c82a467ca8f3) replace consts with enum - [`bdab25a`](https://github.com/pelican-dev/panel/commit/bdab25a50fc8f97efde4c9c2f786538400db0c3e) fix tests - [`88d994a`](https://github.com/pelican-dev/panel/commit/88d994a6e5a219b738b4b75789e31a8870cd6edb) fix tests part 2 - [`88a0f7e`](https://github.com/pelican-dev/panel/commit/88a0f7eb00918cc4628639227d571e8ffda1bda3) fix tests part 3 - [`0929dfe`](https://github.com/pelican-dev/panel/commit/0929dfe31f3cb33c7d7b01b53b0e2743cc10a87b) rabbit changes - [`5e0f6fd`](https://github.com/pelican-dev/panel/commit/5e0f6fdd05cfecdc32488fc0b1d76095f0186907) small cleanups - [`ca5a5f4`](https://github.com/pelican-dev/panel/commit/ca5a5f4d3e36909042f0a538c02a9bcb4e2ce19a) improve registration for custom permissions - [`548ba4d`](https://github.com/pelican-dev/panel/commit/548ba4d183dd8fa99bcce80a2fd02d80c8cddd4b) make phpstan happy - [`4438ed4`](https://github.com/pelican-dev/panel/commit/4438ed45904f757a04c8ad3c4b8e1303ef8ff43d) tiny cleanup ### 📊 Changes **112 files changed** (+610 additions, -668 deletions) <details> <summary>View changed files</summary> 📝 `app/Contracts/Http/ClientPermissionsRequest.php` (+5 -4) ➕ `app/Enums/SubuserPermission.php` (+88 -0) 📝 `app/Extensions/Features/Schemas/GSLTokenSchema.php` (+2 -2) 📝 `app/Extensions/Features/Schemas/JavaVersionSchema.php` (+2 -2) 📝 `app/Filament/App/Resources/Servers/Pages/ListServers.php` (+5 -5) 📝 `app/Filament/Components/Actions/ExportScheduleAction.php` (+2 -2) 📝 `app/Filament/Components/Actions/ImportScheduleAction.php` (+2 -2) 📝 `app/Filament/Server/Pages/Console.php` (+5 -5) 📝 `app/Filament/Server/Pages/Settings.php` (+9 -9) 📝 `app/Filament/Server/Pages/Startup.php` (+6 -6) 📝 `app/Filament/Server/Resources/Allocations/AllocationResource.php` (+5 -5) 📝 `app/Filament/Server/Resources/Backups/BackupResource.php` (+7 -7) 📝 `app/Filament/Server/Resources/Databases/DatabaseResource.php` (+4 -4) 📝 `app/Filament/Server/Resources/Files/Pages/DownloadFiles.php` (+2 -2) 📝 `app/Filament/Server/Resources/Files/Pages/EditFiles.php` (+4 -4) 📝 `app/Filament/Server/Resources/Files/Pages/ListFiles.php` (+22 -22) 📝 `app/Filament/Server/Resources/Schedules/Pages/ViewSchedule.php` (+2 -2) 📝 `app/Filament/Server/Resources/Subusers/SubuserResource.php` (+16 -8) 📝 `app/Filament/Server/Widgets/ServerConsole.php` (+3 -3) 📝 `app/Http/Controllers/Api/Client/ClientController.php` (+3 -4) _...and 80 more files_ </details> ### 📄 Description (Backend) Refactors for subuser permissions: - Removed `Permissions` model - Added enum for subuser permissions - Moved all permission stuff to `Subuser` model - Allow to register custom subuser permissions (closes #1923) _Permission names have not changed! So (in theory) no breaking changes for existing installs!_ --- <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 18:21:04 +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#1675