Skip to content

Commit

Permalink
fix: return true when the role does not have permissions but the user…
Browse files Browse the repository at this point in the history
… has direct permissions . close tuandm#291
  • Loading branch information
dengxit committed Mar 27, 2021
1 parent d5c2df1 commit c3e4c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Laravue/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function hasPermission($permission): bool
return true;
}
}
return false;
return $this->hasDirectPermission($permission);
}

/**
Expand Down

0 comments on commit c3e4c04

Please sign in to comment.