1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Changed role names

This commit is contained in:
Eldad Fux 2021-01-13 16:11:07 +02:00
parent 3da045f6f7
commit 5ed2eea208
3 changed files with 10 additions and 10 deletions

View file

@ -16,13 +16,13 @@ class Auth
/**
* User Roles.
*/
const USER_ROLE_GUEST = 0;
const USER_ROLE_MEMBER = 1;
const USER_ROLE_ADMIN = 2;
const USER_ROLE_DEVELOPER = 3;
const USER_ROLE_OWNER = 4;
const USER_ROLE_APP = 5;
const USER_ROLE_SYSTEM = 6;
const USER_ROLE_GUEST = 'guest';
const USER_ROLE_MEMBER = 'member';
const USER_ROLE_ADMIN = 'admin';
const USER_ROLE_DEVELOPER = 'developer';
const USER_ROLE_OWNER = 'owner';
const USER_ROLE_APP = 'app';
const USER_ROLE_SYSTEM = 'system';
/**
* Token Types.

View file

@ -18,7 +18,7 @@ trait DatabaseBase
]), [
'name' => 'Actors',
'read' => ['*'],
'write' => ['role:1', 'role:2'],
'write' => ['role:member', 'role:admin'],
'rules' => [
[
'label' => 'First Name',
@ -55,7 +55,7 @@ trait DatabaseBase
]), [
'name' => 'Movies',
'read' => ['*'],
'write' => ['role:1', 'role:2'],
'write' => ['role:member', 'role:admin'],
'rules' => [
[
'label' => 'Name',

View file

@ -27,7 +27,7 @@ class DatabaseCustomServerTest extends Scope
]), [
'name' => 'Actors',
'read' => ['*'],
'write' => ['role:1', 'role:2'],
'write' => ['role:member', 'role:admin'],
'rules' => [
[
'label' => 'First Name',