fix merge sideeffect
This commit is contained in:
parent
f3338e7ed1
commit
2459844e97
|
@ -31,14 +31,6 @@ App::init(function ($project) {
|
|||
}
|
||||
}, ['project'], 'projects');
|
||||
|
||||
App::init(function ($project) {
|
||||
/** @var Utopia\Database\Document $project */
|
||||
|
||||
if($project->getId() !== 'console') {
|
||||
throw new Exception('Access to this API is forbidden.', 401);
|
||||
}
|
||||
}, ['project'], 'projects');
|
||||
|
||||
App::post('/v1/projects')
|
||||
->desc('Create Project')
|
||||
->groups(['api', 'projects'])
|
||||
|
|
Loading…
Reference in a new issue