3
0
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:
snipe
2016-07-10 20:55:44 -07:00
parent 814f8ea5fb
commit 4e38f96f97
2 changed files with 3 additions and 3 deletions

View File

@ -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!');
}