Commit 8fabf6817ffaa9f3c4e12d76135f51496820de91
1 parent
34a1f501
test
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
app/library/App/Resources/UserResource.php
... | ... | @@ -24,17 +24,17 @@ class UserResource extends ApiResource { |
24 | 24 | //->allow(AclRoles::ALL_ROLES) |
25 | 25 | |
26 | 26 | ->endpoint(ApiEndpoint::all() |
27 | - ->allow(AclRoles::USER) | |
27 | + //->allow(AclRoles::USER) | |
28 | 28 | ->description('Returns all registered users') |
29 | 29 | ) |
30 | 30 | ->endpoint(ApiEndpoint::get('/me', 'me') |
31 | - ->allow(AclRoles::USER) | |
31 | + //->allow(AclRoles::USER) | |
32 | 32 | ->description('Returns the currently logged in user') |
33 | 33 | ) |
34 | 34 | |
35 | 35 | ->endpoint(ApiEndpoint::post('/authenticate', 'authenticate') |
36 | - ->allow(AclRoles::UNAUTHORIZED) | |
37 | - ->deny(AclRoles::AUTHORIZED) | |
36 | + //->allow(AclRoles::UNAUTHORIZED) | |
37 | + //->deny(AclRoles::AUTHORIZED) | |
38 | 38 | ->description('Authenticates user credentials provided in the authorization header and returns an access token') |
39 | 39 | ->exampleResponse([ |
40 | 40 | 'token' => 'co126bbm40wqp41i3bo7pj1gfsvt9lp6', | ... | ... |