@@ -20,11 +20,11 @@ |
||
| 20 | 20 | public function hasPermission(PermissionInterface $permission) : bool; |
| 21 | 21 | |
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * Retrieve the permissions associated with the user's roles. |
|
| 25 | - * |
|
| 26 | - * @return array An array of permissions associated with the user's roles. |
|
| 27 | - */ |
|
| 23 | + /** |
|
| 24 | + * Retrieve the permissions associated with the user's roles. |
|
| 25 | + * |
|
| 26 | + * @return array An array of permissions associated with the user's roles. |
|
| 27 | + */ |
|
| 28 | 28 | public function getPermissions() : array; |
| 29 | 29 | |
| 30 | 30 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $user = $authenticator->getLoggedUser(); |
| 50 | 50 | $num_privileges = $user->privileges->and(livello__gte: $level)->count(); |
| 51 | 51 | return ($num_privileges > 0); |
| 52 | - } elseif($modifier == PermissionRequired::class){ |
|
| 52 | + } elseif($modifier == PermissionRequired::class) { |
|
| 53 | 53 | $user = (new UserAuthenticator)->getLoggedUser(); |
| 54 | 54 | die(print_r($params)); |
| 55 | 55 | } |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Lepton\Http\Response; |
| 4 | 4 | |
| 5 | - class JSONResponse extends SuccessResponse |
|
| 5 | + class JSONResponse extends SuccessResponse |
|
| 6 | 6 | { |
| 7 | 7 | |
| 8 | 8 | public function __construct( |