nixonrodrigues commented on code in PR #675:
URL: https://github.com/apache/atlas/pull/675#discussion_r3630545373
##########
webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java:
##########
@@ -360,9 +362,11 @@ public Response getStatus() {
@GET
@Path("session")
@Produces(Servlets.JSON_MEDIA_TYPE)
- public Response getUserProfile(@Context HttpServletRequest request) {
+ public Response getUserProfile(@Context HttpServletRequest request) throws
AtlasBaseException {
LOG.debug("==> AdminResource.getUserProfile()");
+ AtlasAuthorizationUtils.verifyAccess(new
AtlasEntityAccessRequest(typeRegistry, AtlasPrivilege.ENTITY_READ), "session");
Review Comment:
Please remove this authz check, because this endpoint only outputs only
authenticated user's information and not entity or type related information.
--
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]