Skip to main content

require_writable

Function require_writable 

Source
pub fn require_writable(user: &Identity) -> Result<(), ApiError>
Expand description

Fail if user is read-only. Admins can always modify, as they can change their read-only state anyway.