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:
Josh Dover 2022-01-06 13:10:12 +01:00 committed by GitHub
parent 90532485f9
commit eab0485fa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 1117 additions and 127 deletions

View file

@ -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.