[PR #1837] [MERGED] Use Policies rather then overriding can*() functions #1598

Closed
opened 2026-02-04 20:00:26 +03:00 by OVERLORD · 0 comments
Owner

📋 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: mainHead: chore/policies


📝 Commits (5)

  • bceb8a0 Use Policies rather then overriding can*() functions
  • 42ce06e Cleanup
  • 28cf5c6 update server policies
  • 0b1e5e2 Merge remote-tracking branch 'origin/main' into chore/policies
  • 6382be9 fix 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.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1837 **Author:** [@rmartinoscar](https://github.com/rmartinoscar) **Created:** 10/27/2025 **Status:** ✅ Merged **Merged:** 12/7/2025 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `chore/policies` --- ### 📝 Commits (5) - [`bceb8a0`](https://github.com/pelican-dev/panel/commit/bceb8a057ef51c7b665f5b96f1de34010bb48d14) Use `Policies` rather then overriding `can*()` functions - [`42ce06e`](https://github.com/pelican-dev/panel/commit/42ce06e21cef3692f46777ae982b829e2c2da51b) Cleanup - [`28cf5c6`](https://github.com/pelican-dev/panel/commit/28cf5c6734e5e8c78d76b7837b6331f47e29e999) update server policies - [`0b1e5e2`](https://github.com/pelican-dev/panel/commit/0b1e5e21e16dd0cef385cabf1040739a2fd075eb) Merge remote-tracking branch 'origin/main' into chore/policies - [`6382be9`](https://github.com/pelican-dev/panel/commit/6382be9609067b398ad95b822299398bd77be23c) fix server policy ### 📊 Changes **32 files changed** (+278 additions, -169 deletions) <details> <summary>View changed files</summary> 📝 `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_ </details> ### 📄 Description Closes #1831 Made this a Draft cause Filament doesn't seem to call them everywhere atm. --- <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 20:00:26 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1598