Function only_admin

Source
pub fn only_admin() -> Result<(), String>
Expand description

Checks if the caller is the admin. This is typically used in conjunction with the modifiers macro

ยงExample

#[update]
#[modifiers("only_admin")]
fn my_func() {}