Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-db-refactor-routes

This commit is contained in:
kodumbeats committed 2021-06-11 14:34:15 -04:00
commit 4f90d89def
25 files changed
+100 -95

No files matched your search

+1 -1
View File
@@ -16,6 +16,7 @@ class Auth
/**
* User Roles.
*/
const USER_ROLE_ALL = 'all';
const USER_ROLE_GUEST = 'guest';
const USER_ROLE_MEMBER = 'member';
const USER_ROLE_ADMIN = 'admin';
@@ -23,7 +24,6 @@ class Auth
const USER_ROLE_OWNER = 'owner';
const USER_ROLE_APP = 'app';
const USER_ROLE_SYSTEM = 'system';
const USER_ROLE_ALL = '*';
/**
* Token Types.
@@ -10,7 +10,7 @@ class Authorization extends Validator
/**
* @var array
*/
static $roles = ['*' => true];
static $roles = ['role:all' => true];
/**
* @var Document
+1 -1
View File
@@ -20,7 +20,7 @@ class File extends Model
'type' => self::TYPE_STRING,
'description' => 'File read permissions.',
'default' => [],
'example' => ['*'],
'example' => ['role:all'],
'array' => true,
])
->addRule('$write', [