From 3108ce6ff1c0f89a4f0bc0f576822a82f0dd0484 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 7 Feb 2017 14:13:29 +0200 Subject: [PATCH] user registration --- app/library/App/Resources/UserResource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/library/App/Resources/UserResource.php b/app/library/App/Resources/UserResource.php index ddd4d57..9c7600c 100755 --- a/app/library/App/Resources/UserResource.php +++ b/app/library/App/Resources/UserResource.php @@ -21,7 +21,7 @@ class UserResource extends ApiResource { ->handler(UserController::class) ->itemKey('user') ->collectionKey('users') - //->deny(AclRoles::UNAUTHORIZED, AclRoles::USER) + ->deny(AclRoles::UNAUTHORIZED, AclRoles::USER) ->endpoint(ApiEndpoint::all() ->allow(AclRoles::USER) @@ -41,7 +41,7 @@ class UserResource extends ApiResource { ]) ) ->endpoint(ApiEndpoint::post('/registration', 'registration')) - ->allow(AclRoles::ALL_ROLES) + ->allow(AclRoles::UNAUTHORIZED) ->description('Registration') ; } -- libgit2 0.21.4