cockpit-plugin-base-react - v1.1.1
    Preparing search index...

    Function useAdminMode

    • 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