Skip to content

Commit

Permalink
[Authz] Types cleanup for AuthorizationServiceSetup (elastic#204208)
Browse files Browse the repository at this point in the history
## Summary

Types cleanup for AuthorizationServiceSetup.

__Relates: https://github.com/elastic/kibana/issues/196271__
  • Loading branch information
elena-shostak authored Dec 13, 2024
1 parent c2a1dd5 commit bf40e56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/packages/security/plugin_types_server/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface SecurityPluginStart {
/**
* Authorization services to manage and access the permissions a particular user has.
*/
authz: Omit<AuthorizationServiceSetup, 'getCurrentUser' | 'getSecurityConfig'>;
authz: AuthorizationServiceSetup;
/**
* User profiles services to retrieve user profiles.
*
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/security/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface SecurityPluginSetup extends SecurityPluginSetupWithoutDeprecate
/**
* @deprecated Use `authz` methods from the `SecurityServiceStart` contract instead.
*/
authz: Omit<AuthorizationServiceSetup, 'getCurrentUser' | 'getSecurityConfig'>;
authz: AuthorizationServiceSetup;
}

export interface PluginSetupDependencies {
Expand Down

0 comments on commit bf40e56

Please sign in to comment.