mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-25 03:14:39 +03:00
[PR #2090] [MERGED] Fix allocation policy for admins and update checks #1754
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/2090
Author: @Boy132
Created: 1/9/2026
Status: ✅ Merged
Merged: 1/19/2026
Merged by: @Boy132
Base:
main← Head:boy132/fix-allocation-policy📝 Commits (5)
68d468efix allocation policy for admins1bfe827fix update check and rename model param8a686d6fix typo1548346add model name4ac964dMerge branch 'main' into boy132/fix-allocation-policy📊 Changes
6 files changed (+57 additions, -22 deletions)
View changed files
📝
app/Policies/AllocationPolicy.php(+43 -8)📝
app/Policies/BackupPolicy.php(+2 -2)📝
app/Policies/DatabasePolicy.php(+3 -3)📝
app/Policies/FilePolicy.php(+3 -3)📝
app/Policies/SchedulePolicy.php(+3 -3)📝
app/Policies/SubuserPolicy.php(+3 -3)📄 Description
The
AllocationPolicyis used both in the admin area and the client area but only checked for subuser permissions. Now it will check for admin permissions if not tenant is set. (aka when you are not in the client area)Also fixes the method name for the update checks.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.