FEATURE: add another permissions

This commit is contained in:
Michal Kváček
2017-08-22 23:27:23 +02:00
parent 1050271915
commit 0aaa626124
13 changed files with 93 additions and 25 deletions
+7
View File
@@ -28,6 +28,13 @@ abstract class BasicPolicy
* @return bool
*/
public function manage(User $user) {
if (!$user->hasAbility($this->entity.'-management')) {
// echo "<pre>";
// debug_print_backtrace();
// echo "</pre>";
// die();
}
return $user->hasAbility($this->entity.'-management');
}