Files
FOSSBilling/tests
Yağızhan Burak YakarandAdam Daley 03a6079418 Rework admin groups and permissions (#3821)
* Redo and migrate the Admin Group structure

* Update permisison checks to use groups

* Migrate admin group CRUD to Doctrine

* Remove legacy permission and group membership logic

* Replace legacy role logic

* Drop the admin.permissions column

* Only allow super admins to create/edit/delete groups, better guards

* Remove the redundant `admin.protected` column

* Clean group memberships when an admin is deleted

* Make the "Exclude cron user" filter work

* Improve labels

* Addressed code review comments

* Require an initial group

* Improved logger messages

* Replace role subtitle with email

* Bypass permission checks during update finalization to make sure it's accessible

* More sensible default groups

* Update seed content timestamps

* Fixed tests

* Cron login guard

* Addressed code review comments

* Change permission column type to JSON

* Addressed code review comments

* Migrate regular staff to a temporary group and disallow groupless staff management

* Look for Super Administrator or legacy `admin` role

* Fixed tests

* Changed test name to make cspell happy

* Grant required permissions to the groups

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-07-04 20:51:49 +01:00
..