Beispiel #1
0
 public static function formatpermission($input)
 {
     $permissions = json_decode($input);
     if ($permissions) {
         return Permission::toArrayn($permissions);
     } else {
         return array();
     }
 }
Beispiel #2
0
 public static function getMergedPermissions($user)
 {
     return Permission::toArrayn(json_decode($user->permissions));
 }
Beispiel #3
0
 public static function getMergedPermissions($user)
 {
     $group = Group::find($user->group_id);
     return Permission::toArrayn(json_decode($group->permissions));
 }