mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Add requireAllSpaces and disable options to FeatureKibanaPrivileges (#118001)
Co-authored-by: Larry Gregory <lgregorydev@gmail.com> Co-authored-by: criamico <mariacristina.amico@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co> Co-authored-by: Joe Portner <joseph.portner@elastic.co>
This commit is contained in:
parent
90532485f9
commit
eab0485fa3
25 changed files with 1117 additions and 127 deletions
|
@ -14,6 +14,18 @@ export interface FeatureKibanaPrivileges {
|
|||
*/
|
||||
excludeFromBasePrivileges?: boolean;
|
||||
|
||||
/**
|
||||
* Whether or not this privilege should only be granted to `All Spaces *`. Should be used for features that do not
|
||||
* support Spaces. Defaults to `false`.
|
||||
*/
|
||||
requireAllSpaces?: boolean;
|
||||
|
||||
/**
|
||||
* Whether or not this privilege should be hidden in the roles UI and disallowed on the API. Defaults to `false`.
|
||||
* @deprecated
|
||||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* If this feature includes management sections, you can specify them here to control visibility of those
|
||||
* pages based on user privileges.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue