junobuild_shared::controllers

Function is_controller

Source
pub fn is_controller(caller: UserId, controllers: &Controllers) -> bool
Expand description

Checks if a caller is a controller.

§Arguments

  • caller: UserId of the caller.
  • controllers: Reference to the current set of controllers.

§Returns

true if the caller is a controller (not anonymous, calling itself or one of the known controllers), otherwise false.