Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IElementContainerPermissionAuthorizer

    Authorizes element container access.

    Namespace: Umbraco.Cms.Core.Security.Authorization
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IElementContainerPermissionAuthorizer

    Methods

    View Source

    IsDeniedAsync(IUser, IEnumerable<Guid>, ISet<string>)

    Authorizes whether the current user has access to the specified element container item(s).

    Declaration
    Task<bool> IsDeniedAsync(IUser currentUser, IEnumerable<Guid> containerKeys, ISet<string> permissionsToCheck)
    Parameters
    Type Name Description
    IUser currentUser

    The current user.

    IEnumerable<Guid> containerKeys

    The keys of the element container items to check for.

    ISet<string> permissionsToCheck

    The collection of permissions to authorize.

    Returns
    Type Description
    Task<bool>

    Returns true if authorization is denied, otherwise false.

    View Source

    IsDeniedAsync(IUser, Guid, string)

    Authorizes whether the current user has access to the specified element container item.

    Declaration
    Task<bool> IsDeniedAsync(IUser currentUser, Guid containerKey, string permissionToCheck)
    Parameters
    Type Name Description
    IUser currentUser

    The current user.

    Guid containerKey

    The key of the element container item to check for.

    string permissionToCheck

    The permission to authorize.

    Returns
    Type Description
    Task<bool>

    Returns true if authorization is denied, otherwise false.

    View Source

    IsDeniedAtRecycleBinLevelAsync(IUser, ISet<string>)

    Authorizes whether the current user has access to the recycle bin item.

    Declaration
    Task<bool> IsDeniedAtRecycleBinLevelAsync(IUser currentUser, ISet<string> permissionsToCheck)
    Parameters
    Type Name Description
    IUser currentUser

    The current user.

    ISet<string> permissionsToCheck

    The collection of permissions to authorize.

    Returns
    Type Description
    Task<bool>

    Returns true if authorization is denied, otherwise false.

    View Source

    IsDeniedAtRecycleBinLevelAsync(IUser, string)

    Authorizes whether the current user has access to the recycle bin item.

    Declaration
    Task<bool> IsDeniedAtRecycleBinLevelAsync(IUser currentUser, string permissionToCheck)
    Parameters
    Type Name Description
    IUser currentUser

    The current user.

    string permissionToCheck

    The permission to authorize.

    Returns
    Type Description
    Task<bool>

    Returns true if authorization is denied, otherwise false.

    View Source

    IsDeniedAtRootLevelAsync(IUser, ISet<string>)

    Authorizes whether the current user has access to the root item.

    Declaration
    Task<bool> IsDeniedAtRootLevelAsync(IUser currentUser, ISet<string> permissionsToCheck)
    Parameters
    Type Name Description
    IUser currentUser

    The current user.

    ISet<string> permissionsToCheck

    The collection of permissions to authorize.

    Returns
    Type Description
    Task<bool>

    Returns true if authorization is denied, otherwise false.

    View Source

    IsDeniedAtRootLevelAsync(IUser, string)

    Authorizes whether the current user has access to the root item.

    Declaration
    Task<bool> IsDeniedAtRootLevelAsync(IUser currentUser, string permissionToCheck)
    Parameters
    Type Name Description
    IUser currentUser

    The current user.

    string permissionToCheck

    The permission to authorize.

    Returns
    Type Description
    Task<bool>

    Returns true if authorization is denied, otherwise false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX