fix merge sideeffect

This commit is contained in:
Damodar Lohani
2021-08-06 12:50:20 +05:45
parent f3338e7ed1
commit 2459844e97
-8
View File
@@ -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'])