isInstanceAdmin()
This commit is contained in:
parent
d32832fabc
commit
5cea9c4603
@ -11,7 +11,7 @@ class DecideWhatToDoWithUser
|
|||||||
{
|
{
|
||||||
public function handle(Request $request, Closure $next): Response
|
public function handle(Request $request, Closure $next): Response
|
||||||
{
|
{
|
||||||
if (!auth()->user() || !isCloud() || !auth()->user()->instanceAdmin()) {
|
if (!auth()->user() || !isCloud() || isInstanceAdmin()) {
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
if (!auth()->user()->hasVerifiedEmail()) {
|
if (!auth()->user()->hasVerifiedEmail()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user