1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

Don't enable -> reset

This commit is contained in:
Eldad Fux 2020-07-03 08:58:19 +03:00
parent e2518ce99a
commit 6c102880ec

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');