mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge branch 'feat-database-indexing' of github.com:appwrite/appwrite into feat-db-refactor-routes
This commit is contained in:
commit
4f90d89def
25 files changed
+100
-95
No files matched your search
@@ -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
|
||||
|
||||
@@ -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', [
|
||||
|
||||
Reference in new issue
Block a user