updating gates

This commit is contained in:
2018-11-05 22:07:16 -06:00
parent c4dab984b0
commit 3626c222ab
2 changed files with 22 additions and 3 deletions
-3
View File
@@ -49,8 +49,6 @@ class User extends Authenticatable
public function hasRole($role)
{
$checks = User::roles()->get();
//$charId = User::where('character_id')->get();
//$checks = DB::table('user_roles')->where('character_id', $charId)->get();
foreach($checks as $check) {
if($check['role'] == $role) {
return true;
@@ -58,7 +56,6 @@ class User extends Authenticatable
}
return false;
//return User::where('role', $role)->get();
}
public function getUserType() {