mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Adds getTarget and list targets controller to user and account
This commit is contained in:
@@ -81,6 +81,7 @@ class Exception extends \Exception
|
||||
public const USER_OAUTH2_BAD_REQUEST = 'user_oauth2_bad_request';
|
||||
public const USER_OAUTH2_UNAUTHORIZED = 'user_oauth2_unauthorized';
|
||||
public const USER_OAUTH2_PROVIDER_ERROR = 'user_oauth2_provider_error';
|
||||
public const USER_TARGET_NOT_FOUND = 'user_target_not_found';
|
||||
|
||||
/** Teams */
|
||||
public const TEAM_NOT_FOUND = 'team_not_found';
|
||||
|
||||
@@ -34,7 +34,7 @@ class BaseList extends Model
|
||||
$namesWithCap = [
|
||||
'documents', 'collections', 'users', 'files', 'buckets', 'functions',
|
||||
'deployments', 'executions', 'projects', 'webhooks', 'keys',
|
||||
'platforms', 'domains', 'memberships', 'teams'
|
||||
'platforms', 'domains', 'memberships', 'teams', 'targets'
|
||||
];
|
||||
|
||||
if (\in_array($name, $namesWithCap)) {
|
||||
|
||||
Reference in New Issue
Block a user