mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-25 03:14:39 +03:00
[PR #1837] [MERGED] Use Policies rather then overriding can*() functions
#1598
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/1837
Author: @rmartinoscar
Created: 10/27/2025
Status: ✅ Merged
Merged: 12/7/2025
Merged by: @notAreYouScared
Base:
main← Head:chore/policies📝 Commits (5)
bceb8a0UsePoliciesrather then overridingcan*()functions42ce06eCleanup28cf5c6update server policies0b1e5e2Merge remote-tracking branch 'origin/main' into chore/policies6382be9fix server policy📊 Changes
32 files changed (+278 additions, -169 deletions)
View changed files
📝
app/Filament/Admin/Resources/DatabaseHosts/DatabaseHostResource.php(+1 -1)📝
app/Filament/Admin/Resources/Mounts/MountResource.php(+1 -1)📝
app/Filament/Admin/Resources/Roles/RoleResource.php(+1 -1)📝
app/Filament/Admin/Resources/Users/UserResource.php(+1 -1)📝
app/Filament/Admin/Resources/Webhooks/WebhookResource.php(+1 -1)📝
app/Filament/Server/Resources/Activities/ActivityResource.php(+0 -6)📝
app/Filament/Server/Resources/Allocations/AllocationResource.php(+0 -21)📝
app/Filament/Server/Resources/Backups/BackupResource.php(+0 -16)📝
app/Filament/Server/Resources/Databases/DatabaseResource.php(+0 -26)📝
app/Filament/Server/Resources/Files/FileResource.php(+0 -23)📝
app/Filament/Server/Resources/Schedules/ScheduleResource.php(+2 -24)📝
app/Filament/Server/Resources/Users/UserResource.php(+0 -21)📝
app/Policies/Admin/ApiKeyPolicy.php(+1 -1)📝
app/Policies/Admin/DatabaseHostPolicy.php(+1 -1)📝
app/Policies/Admin/DefaultPolicies.php(+1 -1)📝
app/Policies/Admin/EggPolicy.php(+1 -1)📝
app/Policies/Admin/MountPolicy.php(+1 -1)📝
app/Policies/Admin/NodePolicy.php(+1 -1)📝
app/Policies/Admin/RolePolicy.php(+1 -1)➕
app/Policies/Admin/ServerPolicy.php(+10 -0)...and 12 more files
📄 Description
Closes #1831
Made this a Draft cause Filament doesn't seem to call them everywhere atm.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.