mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge branch '1.5.x' into feat-runtime-controls-1.5.x
This commit is contained in:
commit
cb0baee4ad
2 changed files with 7 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ App::init()
|
||||||
App::post('/v1/projects')
|
App::post('/v1/projects')
|
||||||
->desc('Create project')
|
->desc('Create project')
|
||||||
->groups(['api', 'projects'])
|
->groups(['api', 'projects'])
|
||||||
|
->label('audits.event', 'projects.create')
|
||||||
->label('scope', 'projects.write')
|
->label('scope', 'projects.write')
|
||||||
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
||||||
->label('sdk.namespace', 'projects')
|
->label('sdk.namespace', 'projects')
|
||||||
|
|
@ -825,6 +826,7 @@ App::patch('/v1/projects/:projectId/auth/max-sessions')
|
||||||
App::delete('/v1/projects/:projectId')
|
App::delete('/v1/projects/:projectId')
|
||||||
->desc('Delete project')
|
->desc('Delete project')
|
||||||
->groups(['api', 'projects'])
|
->groups(['api', 'projects'])
|
||||||
|
->label('audits.event', 'projects.delete')
|
||||||
->label('scope', 'projects.write')
|
->label('scope', 'projects.write')
|
||||||
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
||||||
->label('sdk.namespace', 'projects')
|
->label('sdk.namespace', 'projects')
|
||||||
|
|
@ -1321,6 +1323,7 @@ App::delete('/v1/projects/:projectId/keys/:keyId')
|
||||||
App::post('/v1/projects/:projectId/platforms')
|
App::post('/v1/projects/:projectId/platforms')
|
||||||
->desc('Create platform')
|
->desc('Create platform')
|
||||||
->groups(['api', 'projects'])
|
->groups(['api', 'projects'])
|
||||||
|
->label('audits.event', 'platforms.create')
|
||||||
->label('scope', 'projects.write')
|
->label('scope', 'projects.write')
|
||||||
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
||||||
->label('sdk.namespace', 'projects')
|
->label('sdk.namespace', 'projects')
|
||||||
|
|
@ -1484,6 +1487,7 @@ App::put('/v1/projects/:projectId/platforms/:platformId')
|
||||||
App::delete('/v1/projects/:projectId/platforms/:platformId')
|
App::delete('/v1/projects/:projectId/platforms/:platformId')
|
||||||
->desc('Delete platform')
|
->desc('Delete platform')
|
||||||
->groups(['api', 'projects'])
|
->groups(['api', 'projects'])
|
||||||
|
->label('audits.event', 'platforms.delete')
|
||||||
->label('scope', 'projects.write')
|
->label('scope', 'projects.write')
|
||||||
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
|
||||||
->label('sdk.namespace', 'projects')
|
->label('sdk.namespace', 'projects')
|
||||||
|
|
|
||||||
|
|
@ -319,6 +319,9 @@ class Builds extends Action
|
||||||
throw new \Exception("Unable to move file");
|
throw new \Exception("Unable to move file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$deployment->setAttribute('path', $path);
|
||||||
|
$deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment);
|
||||||
|
|
||||||
Console::execute('rm -rf ' . $tmpPath, '', $stdout, $stderr);
|
Console::execute('rm -rf ' . $tmpPath, '', $stdout, $stderr);
|
||||||
|
|
||||||
$source = $path;
|
$source = $path;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue