Skip to content

Commit

Permalink
Admin new user
Browse files Browse the repository at this point in the history
  • Loading branch information
noullet committed Oct 20, 2016
1 parent cf57b73 commit 7b19c74
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -85,7 +85,7 @@ class UserController implements ControllerErrorHandler{
render(status: 200, contentType: 'application/json', text: user as JSON)
}

@Secured(["!isAuthenticated()"])
@Secured(["!isAuthenticated() or hasRole('ROLE_ADMIN')"])
def save() {
if (!params.user) {
returnError(code: 'todo.is.ui.no.data')
Expand Down

0 comments on commit 7b19c74

Please sign in to comment.