Expand API with better user group management.

This commit is contained in:
James Cole
2023-09-20 06:17:56 +02:00
parent 549f3c038a
commit 1c41b6753d
31 changed files with 853 additions and 146 deletions

View File

@@ -23,18 +23,12 @@
declare(strict_types=1);
use FireflyIII\Models\UserRole;
use FireflyIII\Enums\UserRoleEnum;
return [
$result = [];
'roles' => [
UserRole::READ_ONLY => [],
UserRole::CHANGE_TRANSACTIONS => [],
UserRole::CHANGE_RULES => [],
UserRole::CHANGE_PIGGY_BANKS => [],
UserRole::CHANGE_REPETITIONS => [],
UserRole::VIEW_REPORTS => [],
UserRole::FULL => [],
UserRole::OWNER => [],
],
];
foreach (UserRoleEnum::cases() as $role) {
$result[$role->value] = [];
}
return $result;