Don't enable -> reset

This commit is contained in:
Eldad Fux
2020-07-03 08:58:19 +03:00
parent e2518ce99a
commit 6c102880ec
+1 -1
View File
@@ -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');