From 453ee7cdc49cadfc7308cd86f13e6c38984e09bf Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 7 Feb 2017 14:15:09 +0200 Subject: [PATCH] user registration --- app/library/App/Resources/UserResource.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/library/App/Resources/UserResource.php b/app/library/App/Resources/UserResource.php index 423bf27..23dfab9 100755 --- a/app/library/App/Resources/UserResource.php +++ b/app/library/App/Resources/UserResource.php @@ -21,7 +21,6 @@ class UserResource extends ApiResource { ->handler(UserController::class) ->itemKey('user') ->collectionKey('users') - ->deny(AclRoles::UNAUTHORIZED, AclRoles::USER) ->endpoint(ApiEndpoint::all() ->allow(AclRoles::USER) @@ -41,7 +40,7 @@ class UserResource extends ApiResource { ]) ) ->endpoint(ApiEndpoint::post('/registration', 'registration')) - ->allow(AclRoles::AUTHORIZED) + ->allow(AclRoles::UNAUTHORIZED) ->description('Registration') ; } -- libgit2 0.21.4