Skip to content

Commit

Permalink
change isDashboard function name to isRequestByDashboardAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
yubonluo committed Mar 21, 2024
1 parent 22323c1 commit f9666a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class WorkspaceSavedObjectsClientWrapper {
return false;
};

private isDashboardAdmin(request: OpenSearchDashboardsRequest): boolean {
private isRequestByDashboardAdmin(request: OpenSearchDashboardsRequest): boolean {
const config = this.config || ({} as WorkspacePluginConfigType);
let groups: string[];
let users: string[];
Expand Down Expand Up @@ -549,7 +549,7 @@ export class WorkspaceSavedObjectsClientWrapper {
return await wrapperOptions.client.deleteByWorkspace(workspace, options);
};

const isDashboardAdmin = this.isDashboardAdmin(wrapperOptions.request);
const isDashboardAdmin = this.isRequestByDashboardAdmin(wrapperOptions.request);

if (isDashboardAdmin) {
return wrapperOptions.client;
Expand Down

0 comments on commit f9666a0

Please sign in to comment.