[][src]Trait sunshine_util::traits::SupervisorPermissions

pub trait SupervisorPermissions<OrgId, ShareId, AccountId>: ShareGroupChecks<OrgId, ShareId, AccountId> {
    fn is_sudo_account(who: &AccountId) -> bool;
fn is_organization_supervisor(organization: OrgId, who: &AccountId) -> bool;
fn is_share_supervisor(
        organization: OrgId,
        share_id: ShareId,
        who: &AccountId
    ) -> bool;
fn put_sudo_account(who: AccountId);
fn put_organization_supervisor(organization: OrgId, who: AccountId);
fn put_share_group_supervisor(
        organization: OrgId,
        share_id: ShareId,
        who: AccountId
    );
fn set_sudo_account(setter: &AccountId, new: AccountId) -> DispatchResult;
fn set_organization_supervisor(
        organization: OrgId,
        setter: &AccountId,
        new: AccountId
    ) -> DispatchResult;
fn set_share_supervisor(
        organization: OrgId,
        share_id: ShareId,
        setter: &AccountId,
        new: AccountId
    ) -> DispatchResult; }

Required methods

fn is_sudo_account(who: &AccountId) -> bool

fn is_organization_supervisor(organization: OrgId, who: &AccountId) -> bool

fn is_share_supervisor(
    organization: OrgId,
    share_id: ShareId,
    who: &AccountId
) -> bool

fn put_sudo_account(who: AccountId)

fn put_organization_supervisor(organization: OrgId, who: AccountId)

fn put_share_group_supervisor(
    organization: OrgId,
    share_id: ShareId,
    who: AccountId
)

fn set_sudo_account(setter: &AccountId, new: AccountId) -> DispatchResult

fn set_organization_supervisor(
    organization: OrgId,
    setter: &AccountId,
    new: AccountId
) -> DispatchResult

fn set_share_supervisor(
    organization: OrgId,
    share_id: ShareId,
    setter: &AccountId,
    new: AccountId
) -> DispatchResult

Loading content...

Implementors

Loading content...