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,17 +24,17 @@ class UserResource extends ApiResource { | ||
24 | //->allow(AclRoles::ALL_ROLES) | 24 | //->allow(AclRoles::ALL_ROLES) |
25 | 25 | ||
26 | ->endpoint(ApiEndpoint::all() | 26 | ->endpoint(ApiEndpoint::all() |
27 | - ->allow(AclRoles::USER) | 27 | + //->allow(AclRoles::USER) |
28 | ->description('Returns all registered users') | 28 | ->description('Returns all registered users') |
29 | ) | 29 | ) |
30 | ->endpoint(ApiEndpoint::get('/me', 'me') | 30 | ->endpoint(ApiEndpoint::get('/me', 'me') |
31 | - ->allow(AclRoles::USER) | 31 | + //->allow(AclRoles::USER) |
32 | ->description('Returns the currently logged in user') | 32 | ->description('Returns the currently logged in user') |
33 | ) | 33 | ) |
34 | 34 | ||
35 | ->endpoint(ApiEndpoint::post('/authenticate', 'authenticate') | 35 | ->endpoint(ApiEndpoint::post('/authenticate', 'authenticate') |
36 | - ->allow(AclRoles::UNAUTHORIZED) | ||
37 | - ->deny(AclRoles::AUTHORIZED) | 36 | + //->allow(AclRoles::UNAUTHORIZED) |
37 | + //->deny(AclRoles::AUTHORIZED) | ||
38 | ->description('Authenticates user credentials provided in the authorization header and returns an access token') | 38 | ->description('Authenticates user credentials provided in the authorization header and returns an access token') |
39 | ->exampleResponse([ | 39 | ->exampleResponse([ |
40 | 'token' => 'co126bbm40wqp41i3bo7pj1gfsvt9lp6', | 40 | 'token' => 'co126bbm40wqp41i3bo7pj1gfsvt9lp6', |