Skip to content

Commit

Permalink
DG-1697: Adding endpoint for linking/unlink policy
Browse files Browse the repository at this point in the history
  • Loading branch information
arpit-at committed Jul 12, 2024
1 parent 98bc685 commit 7e6009b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,7 @@ public void repairAccessControlAlias(@PathParam("guid") String guid) throws Atla
@Consumes(Servlets.JSON_MEDIA_TYPE)
@Timed
public void linkBusinessPolicy(@PathParam("policyId") final String policyId, final LinkBusinessPolicyRequest request) throws AtlasBaseException {
if (ARGO_SERVICE_USER_NAME.equals(RequestContext.getCurrentUser())) {
if (!ARGO_SERVICE_USER_NAME.equals(RequestContext.getCurrentUser())) {
throw new AtlasBaseException(AtlasErrorCode.UNAUTHORIZED_ACCESS, RequestContext.getCurrentUser(), "Policy linking");
}
AtlasPerfTracer perf = null;
Expand Down

0 comments on commit 7e6009b

Please sign in to comment.