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