Commit 3108ce6ff1c0f89a4f0bc0f576822a82f0dd0484

Authored by Alex Savenko
1 parent 94cc70f5

user registration

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/library/App/Resources/UserResource.php
... ... @@ -21,7 +21,7 @@ class UserResource extends ApiResource {
21 21 ->handler(UserController::class)
22 22 ->itemKey('user')
23 23 ->collectionKey('users')
24   - //->deny(AclRoles::UNAUTHORIZED, AclRoles::USER)
  24 + ->deny(AclRoles::UNAUTHORIZED, AclRoles::USER)
25 25  
26 26 ->endpoint(ApiEndpoint::all()
27 27 ->allow(AclRoles::USER)
... ... @@ -41,7 +41,7 @@ class UserResource extends ApiResource {
41 41 ])
42 42 )
43 43 ->endpoint(ApiEndpoint::post('/registration', 'registration'))
44   - ->allow(AclRoles::ALL_ROLES)
  44 + ->allow(AclRoles::UNAUTHORIZED)
45 45 ->description('Registration')
46 46 ;
47 47 }
... ...