-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ public function before(RequestInterface $request, $params = null) | |
{ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fefo-p
Author
Contributor
|
||
$result = $authorize->inGroup($group, $authenticate->id()); | ||
} | ||
else return; | ||
} | ||
|
||
if (! $result) | ||
|
I think you might want:
And then you wouldn’t need the
else
which currently will cause false negatives.