Skip to content

Commit

Permalink
isInstanceAdmin()
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Oct 9, 2023
1 parent d32832f commit 5cea9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/DecideWhatToDoWithUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DecideWhatToDoWithUser
{
public function handle(Request $request, Closure $next): Response
{
if (!auth()->user() || !isCloud() || !auth()->user()->instanceAdmin()) {
if (!auth()->user() || !isCloud() || isInstanceAdmin()) {
return $next($request);
}
if (!auth()->user()->hasVerifiedEmail()) {
Expand Down

0 comments on commit 5cea9c4

Please sign in to comment.