Don't enable -> reset
This commit is contained in:
parent
e2518ce99a
commit
6c102880ec
|
@ -35,7 +35,7 @@ class WebhooksV1
|
|||
|
||||
$project = $consoleDB->getDocument($projectId);
|
||||
|
||||
Authorization::enable();
|
||||
Authorization::reset();
|
||||
|
||||
if (\is_null($project->getId()) || Database::SYSTEM_COLLECTION_PROJECTS !== $project->getCollection()) {
|
||||
throw new Exception('Project Not Found');
|
||||
|
|
Loading…
Reference in a new issue