cockpit-plugin-base-react - v1.1.1
GitHub
Wiki
Preparing search index...
index
useAdminMode
Function useAdminMode
useAdminMode
()
:
boolean
|
null
Returns whether the current Cockpit session has administrative (superuser) access.
null
— still determining (show nothing or a neutral state)
true
— admin access granted
false
— limited mode; privileged operations will fail
Returns
boolean
|
null
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
Wiki
cockpit-plugin-base-react - v1.1.1
Loading...
Returns whether the current Cockpit session has administrative (superuser) access.
null— still determining (show nothing or a neutral state)true— admin access grantedfalse— limited mode; privileged operations will fail