From 5cc24f8a01b5f5736a44db904590e14e2e36a3e9 Mon Sep 17 00:00:00 2001 From: Yao Wang Date: Fri, 13 May 2022 15:53:07 +0800 Subject: [PATCH] improve allow role for drop graph --- .../main/java/com/baidu/hugegraph/api/profile/GraphsAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/profile/GraphsAPI.java b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/profile/GraphsAPI.java index 040ec49be1..d44b1958a8 100644 --- a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/profile/GraphsAPI.java +++ b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/profile/GraphsAPI.java @@ -107,7 +107,7 @@ public Object get(@Context GraphManager manager, @Timed @Path("{name}") @Produces(APPLICATION_JSON_WITH_CHARSET) - @RolesAllowed({"admin", "$owner=$name"}) + @RolesAllowed({"admin"}) public void drop(@Context GraphManager manager, @PathParam("name") String name, @QueryParam("confirm_message") String message) {