Files
FOSSBilling/tests-legacy/modules/System
Yağızhan Burak YakarandAdam Daley f2ccbf491a Permission system improvements and new permission keys (#3396)
* Decouple hide_permissions and can_always_access

* Introduce 13 new permission keys for Client and Hook

* Create a new `has_permission` function in Twig and start using it

* Created 5 new permission keys for Currency

* Remove unused logMock

* Implemented per-request caching for staff permissions

* Decouple hide_permissions and can_always_access

* Introduce 13 new permission keys for Client and Hook

* Create a new `has_permission` function in Twig and start using it

* Created 5 new permission keys for Currency

* Remove unused logMock

* Implemented per-request caching for staff permissions

* Created 3 new permission keys for System

* Return a more helpful exception message

* Make permission errors return HTTP 403 instead of 401

* Created 2 new permission keys for Redirect

* Renamed the keys to keep in line

* Fixed tests

* Add manage_settings permission key to Redirect

* Refactor API authentication flow and improve token handling

* Enforce `client.view` and refactor staff cache

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-04-15 18:36:58 +01:00
..