Trait df_traits::PermissionChecker[][src]

pub trait PermissionChecker {
    type AccountId;
    fn ensure_user_has_space_permission(
        user: User<Self::AccountId>,
        ctx: SpacePermissionsContext,
        permission: SpacePermission,
        error: DispatchError
    ) -> DispatchResult; fn ensure_account_has_space_permission(
        account: Self::AccountId,
        ctx: SpacePermissionsContext,
        permission: SpacePermission,
        error: DispatchError
    ) -> DispatchResult { ... } }

Associated Types

type AccountId[src]

Loading content...

Required methods

fn ensure_user_has_space_permission(
    user: User<Self::AccountId>,
    ctx: SpacePermissionsContext,
    permission: SpacePermission,
    error: DispatchError
) -> DispatchResult
[src]

Loading content...

Provided methods

fn ensure_account_has_space_permission(
    account: Self::AccountId,
    ctx: SpacePermissionsContext,
    permission: SpacePermission,
    error: DispatchError
) -> DispatchResult
[src]

Loading content...

Implementors

Loading content...