imbajin commented on code in PR #3331:
URL: https://github.com/apache/hugegraph/pull/3331#discussion_r4285746607


##########
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/profile/GraphsAPI.java:
##########
@@ -693,6 +704,63 @@ public Map<String, GraphMode> mode(@Context GraphManager 
manager,
         return ImmutableMap.of("mode", g.mode());
     }
 
+    @GET
+    @Timed
+    @Path("{name}/mode/owners")
+    @Produces(APPLICATION_JSON_WITH_CHARSET)
+    @RolesAllowed({"space", "$owner=$name"})

Review Comment:
   Updated both GET and PUT routes to use the supported graph-space-qualified 
owner permission. The regression runs the actual Jersey role filter and 
Authorizer: a graph-scoped STATUS WRITE account is accepted, while a different 
graph/space and an unprivileged account are denied. The proxy STATUS WRITE 
check and global-admin recovery restriction remain in place. Local compilation 
and the focused authorization/loading-owner tests pass.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to