mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-04 14:13:52 +09:00
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>
This commit is contained in:
1 parent
3790fcbbd3
commit
f2ccbf491a
39 files changed
+1266
-111
No files matched your search
@@ -310,7 +310,7 @@ LOCK TABLES `setting` WRITE;
|
||||
|
||||
INSERT INTO `setting` (`id`, `param`, `value`, `public`, `category`, `hash`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
(1,'last_patch','52',0,NULL,NULL,'2024-12-30 12:00:00','2024-12-30 12:00:00'),
|
||||
(1,'last_patch','53',0,NULL,NULL,'2024-12-30 12:00:00','2024-12-30 12:00:00'),
|
||||
(2,'company_name','Company Name',0,NULL,NULL,'2022-12-01 12:00:00','2022-12-01 12:00:00'),
|
||||
(3,'company_email','support@yourcompany.com',0,NULL,NULL,'2022-12-01 12:00:00','2022-12-01 12:00:00'),
|
||||
(4,'company_signature','FOSSBilling.org - Client Management, Invoicing and Support Software',0,NULL,NULL,'2022-12-01 12:00:00','2022-12-01 12:00:00'),
|
||||
|
||||
Reference in new issue
Block a user