mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 22:55:30 +00:00
Switched or and and to || and && for code quality
This commit is contained in:
@ -638,7 +638,7 @@ class UsersController extends Controller
|
||||
}
|
||||
|
||||
// Do we have permission to unsuspend this user?
|
||||
if ($user->isSuperUser() and ! Auth::user()->isSuperUser()) {
|
||||
if ($user->isSuperUser() && !Auth::user()->isSuperUser()) {
|
||||
// Redirect to the user management page
|
||||
return redirect()->route('users')->with('error', 'Insufficient permissions!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user