46d59b48b5
Updated all GitHub URLs from cpfarhood to privilegedescalation organization: - Repository URLs in package.json and Artifact Hub metadata - Documentation links and references - Git remote updated No functional changes - this is purely an organizational migration. Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
933 B
933 B
Headlamp Sealed Secrets API v0.2.0
Headlamp Sealed Secrets API / hooks/usePermissions / useIsReadOnly
Function: useIsReadOnly()
useIsReadOnly(
namespace?):object
Defined in: src/hooks/usePermissions.ts:127
Hook to check if user has read-only access
Returns true if user can read/list but cannot create/update/delete.
Parameters
namespace?
string
Optional namespace to check
Returns
object
Object with loading state and isReadOnly flag
loading
loading:
boolean
isReadOnly
isReadOnly:
boolean
Example
const { loading, isReadOnly } = useIsReadOnly('default');
if (isReadOnly) {
// Show read-only warning
}