This is an automated email from the ASF dual-hosted git repository.
vel pushed a commit to branch ranger-2.2
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/ranger-2.2 by this push:
new 580b99f RANGER-3168: User/Auditor should have read-only access for
Servicedef via PublicAPIsv2 API
580b99f is described below
commit 580b99f911c93092967ed8bff1bf0ce88ff067f0
Author: Mahesh Bandal <[email protected]>
AuthorDate: Fri Jan 29 16:37:39 2021 +0530
RANGER-3168: User/Auditor should have read-only access for Servicedef via
PublicAPIsv2 API
Signed-off-by: Velmurugan Periasamy <[email protected]>
---
security-admin/src/main/java/org/apache/ranger/rest/PublicAPIsv2.java | 3 ---
1 file changed, 3 deletions(-)
diff --git
a/security-admin/src/main/java/org/apache/ranger/rest/PublicAPIsv2.java
b/security-admin/src/main/java/org/apache/ranger/rest/PublicAPIsv2.java
index 19b93e6..ab2f54a 100644
--- a/security-admin/src/main/java/org/apache/ranger/rest/PublicAPIsv2.java
+++ b/security-admin/src/main/java/org/apache/ranger/rest/PublicAPIsv2.java
@@ -127,7 +127,6 @@ public class PublicAPIsv2 {
@GET
@Path("/api/servicedef/{id}")
- @PreAuthorize("hasRole('ROLE_SYS_ADMIN')")
@Produces({ "application/json", "application/xml" })
public RangerServiceDef getServiceDef(@PathParam("id") Long id) {
return serviceREST.getServiceDef(id);
@@ -135,7 +134,6 @@ public class PublicAPIsv2 {
@GET
@Path("/api/servicedef/name/{name}")
- @PreAuthorize("hasRole('ROLE_SYS_ADMIN')")
@Produces({ "application/json", "application/xml" })
public RangerServiceDef getServiceDefByName(@PathParam("name") String
name) {
return serviceREST.getServiceDefByName(name);
@@ -143,7 +141,6 @@ public class PublicAPIsv2 {
@GET
@Path("/api/servicedef/")
- @PreAuthorize("hasRole('ROLE_SYS_ADMIN')")
@Produces({ "application/json", "application/xml" })
public List<RangerServiceDef> searchServiceDefs(@Context
HttpServletRequest request) {
return serviceREST.getServiceDefs(request).getServiceDefs();