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>
1003 B
1003 B
Headlamp Sealed Secrets API v0.2.0
Headlamp Sealed Secrets API / hooks/usePermissions / useHasWriteAccess
Function: useHasWriteAccess()
useHasWriteAccess(
namespace?):object
Defined in: src/hooks/usePermissions.ts:104
Hook to check if user has any write permissions
Returns true if user can create, update, or delete. Useful for showing/hiding entire sections of UI.
Parameters
namespace?
string
Optional namespace to check
Returns
object
Object with loading state and hasWriteAccess flag
loading
loading:
boolean
hasWriteAccess
hasWriteAccess:
boolean
Example
const { loading, hasWriteAccess } = useHasWriteAccess('default');
if (hasWriteAccess) {
// Show management UI
}