mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-23 07:51:44 +00:00
Trigger Api Only admin can invoke
This commit is contained in:
parent
5bbd49cc60
commit
944a07cbd5
@ -368,7 +368,7 @@ public class EventSubscriptionResource extends EntityResource<EventSubscription,
|
|||||||
@Parameter(description = "Id of the event Subscription", schema = @Schema(type = "UUID")) @PathParam("id")
|
@Parameter(description = "Id of the event Subscription", schema = @Schema(type = "UUID")) @PathParam("id")
|
||||||
UUID id)
|
UUID id)
|
||||||
throws IOException, SchedulerException {
|
throws IOException, SchedulerException {
|
||||||
// authorizer.authorizeAdmin(securityContext);
|
authorizer.authorizeAdmin(securityContext);
|
||||||
EventSubscription eventSub = dao.get(null, id, dao.getFields("id,name"));
|
EventSubscription eventSub = dao.get(null, id, dao.getFields("id,name"));
|
||||||
return ReportsHandler.getInstance().triggerExistingDataInsightJob(eventSub);
|
return ReportsHandler.getInstance().triggerExistingDataInsightJob(eventSub);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user