Add new roles.

This commit is contained in:
James Cole 2022-08-14 15:41:06 +02:00
parent ae0a675668
commit 322b6d19d8
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,8 @@ class UserRole extends Model
public const CHANGE_REPETITIONS = 'change_reps';
public const CHANGE_RULES = 'change_rules';
public const CHANGE_TRANSACTIONS = 'change_tx';
public const MANAGE_WEBHOOKS = 'manage_webhooks';
public const MANAGE_CURRENCIES = 'manage_currencies';
public const FULL = 'full';
public const OWNER = 'owner';
public const READ_ONLY = 'ro';

View File

@ -47,6 +47,8 @@ class UserRoleSeeder extends Seeder
UserRole::CHANGE_PIGGY_BANKS,
UserRole::CHANGE_REPETITIONS,
UserRole::VIEW_REPORTS,
UserRole::MANAGE_WEBHOOKS,
UserRole::MANAGE_CURRENCIES,
UserRole::FULL,
UserRole::OWNER,
];