MCPcopy Create free account
hub / github.com/dfinity/orbit / is_controller

Method is_controller

core/control-panel/impl/src/core/call_context.rs:64–66  ·  view source on GitHub ↗

Checks if the caller is a controller.

(&self)

Source from the content-addressed store, hash-verified

62
63 /// Checks if the caller is a controller.
64 pub fn is_controller(&self) -> bool {
65 is_controller(&self._caller)
66 }
67
68 /// Checks if the caller is an admin.
69 pub fn is_admin(&self) -> bool {

Callers 3

is_adminMethod · 0.80
assert_controllerMethod · 0.80
assert_user_accessMethod · 0.80

Calls 1

is_controllerFunction · 0.85

Tested by

no test coverage detected