Skip to content

Commit

Permalink
Trigger Api Only admin can invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
mohityadav766 committed May 10, 2023
1 parent 5bbd49c commit 944a07c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public Response triggerDataInsightJob(
@Parameter(description = "Id of the event Subscription", schema = @Schema(type = "UUID")) @PathParam("id")
UUID id)
throws IOException, SchedulerException {
// authorizer.authorizeAdmin(securityContext);
authorizer.authorizeAdmin(securityContext);
EventSubscription eventSub = dao.get(null, id, dao.getFields("id,name"));
return ReportsHandler.getInstance().triggerExistingDataInsightJob(eventSub);
}
Expand Down

0 comments on commit 944a07c

Please sign in to comment.