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