debugging

This commit is contained in:
2018-11-10 15:06:38 -06:00
parent 0b5d6e7096
commit ad2f4ac6d1
+2 -2
View File
@@ -48,9 +48,9 @@ class User extends Authenticatable
//Used in middleware to make sure a user is able to access many of the pages
public function hasRole($role)
{
$check = User::role()->get();
$check = User::role()->get('role');
//dd($check);
if($check['role'] == $role) {
if($check == $role) {
return true;
} else {
return false;