Typo;
This commit is contained in:
@@ -113,7 +113,7 @@ class UsersController extends Controller
|
||||
public function destroy(User $user)
|
||||
{
|
||||
// About if user is Super Admin or User ID belongs to Auth User
|
||||
if ($user->hasRole('Super Admin') || $user->id == auth()->user()->id)
|
||||
if ($user->hasRole('ADMIN') || $user->id == auth()->user()->id)
|
||||
{
|
||||
abort(403, 'USER DOES NOT HAVE THE RIGHT PERMISSIONS');
|
||||
}
|
||||
|
||||
@@ -46,7 +46,6 @@ Route::get('/pippo', function (Request $request) {
|
||||
|
||||
|
||||
|
||||
Route::view('/prova','test')->name('prova');
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
return view('dashboard');
|
||||
|
||||
Reference in New Issue
Block a user