Skip to content

Commit

Permalink
Remove unused method argument
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Oct 28, 2021
1 parent 1acadc3 commit b370cbe
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export class SecureSpacesClientWrapper implements ISpacesClient {
await this.ensureAuthorizedAtSpace(
id,
this.authorization.actions.login,
'get',
`Unauthorized to get ${id} space`
);
} catch (error) {
Expand Down Expand Up @@ -362,12 +361,7 @@ export class SecureSpacesClientWrapper implements ISpacesClient {
}
}

private async ensureAuthorizedAtSpace(
spaceId: string,
action: string,
method: string,
forbiddenMessage: string
) {
private async ensureAuthorizedAtSpace(spaceId: string, action: string, forbiddenMessage: string) {
const checkPrivileges = this.authorization.checkPrivilegesWithRequest(this.request);
const { hasAllRequested } = await checkPrivileges.atSpace(spaceId, {
kibana: action,
Expand Down

0 comments on commit b370cbe

Please sign in to comment.