commit 6e7edf6ebd55fc84c625935c2713bbea253787f8 Author: smarcet Date: Wed Oct 14 10:54:16 2020 -0300 Fixed typo Change-Id: Ica9cb90a14f0507bcb4dc130255a01136140ac90 Signed-off-by: smarcet diff --git a/app/Http/Controllers/Apis/Protected/Summit/OAuth2SummitApiController.php b/app/Http/Controllers/Apis/Protected/Summit/OAuth2SummitApiController.php index 2ac122f..76f352f 100644 --- a/app/Http/Controllers/Apis/Protected/Summit/OAuth2SummitApiController.php +++ b/app/Http/Controllers/Apis/Protected/Summit/OAuth2SummitApiController.php @@ -198,7 +198,7 @@ final class OAuth2SummitApiController extends OAuth2ProtectedController $current_member = $this->resource_server_context->getCurrentUser(); - if (!is_null($current_member) && !$current_member->isAdmin() && $current_member->isSummitAdmin() && !$current_member->sum()) { + if (!is_null($current_member) && !$current_member->isAdmin() && !$current_member->isSummitAdmin()) { return $this->error403(['message' => sprintf("Member %s has not permission for any Summit", $current_member->getId())]); }