only_owner

Function only_owner 

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

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

ยงExample

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