usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject [7/8] usergrid git commit: Allow superuser to access @RequireAdminUserAccess
Date Tue, 29 Mar 2016 20:11:48 GMT
Allow superuser to access @RequireAdminUserAccess


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/e3b467d1
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/e3b467d1
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/e3b467d1

Branch: refs/heads/hotfix-2.0.0
Commit: e3b467d1a98dd083095e77b7442d0c84e648022c
Parents: f61b5a1
Author: Michael Russo <mrusso@apigee.com>
Authored: Mon Feb 22 21:54:28 2016 -0800
Committer: Michael Russo <mrusso@apigee.com>
Committed: Mon Feb 22 21:54:28 2016 -0800

----------------------------------------------------------------------
 .../org/apache/usergrid/rest/management/users/UserResource.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/e3b467d1/stack/rest/src/main/java/org/apache/usergrid/rest/management/users/UserResource.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/main/java/org/apache/usergrid/rest/management/users/UserResource.java
b/stack/rest/src/main/java/org/apache/usergrid/rest/management/users/UserResource.java
index 7ea4eec..799d59f 100644
--- a/stack/rest/src/main/java/org/apache/usergrid/rest/management/users/UserResource.java
+++ b/stack/rest/src/main/java/org/apache/usergrid/rest/management/users/UserResource.java
@@ -100,7 +100,7 @@ public class UserResource extends AbstractContextResource {
         return getSubResource( OrganizationsResource.class ).init( user );
     }
 
-
+    @RequireAdminUserAccess
     @PUT
     public JSONWithPadding setUserInfo( @Context UriInfo ui, Map<String, Object> json,
                                         @QueryParam( "callback" ) @DefaultValue( "callback"
) String callback )


Mime
View raw message