Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUserPermissionAuthorizer

    Authorizes user access.

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

    Methods

    View Source

    IsDeniedAsync(IUser, Guid)

    Authorizes whether the current user has access to the specified user account.

    Declaration
    virtual Task<bool> IsDeniedAsync(IUser currentUser, Guid userKey)
    Parameters
    Type Name Description
    IUser currentUser

    The current user.

    Guid userKey

    The key of the user to check for.

    Returns
    Type Description
    Task<System.Boolean>

    Returns true if authorization is successful, otherwise false.

    View Source

    IsDeniedAsync(IUser, IEnumerable<Guid>)

    Authorizes whether the current user has access to the specified user account(s).

    Declaration
    Task<bool> IsDeniedAsync(IUser currentUser, IEnumerable<Guid> userKeys)
    Parameters
    Type Name Description
    IUser currentUser

    The current user.

    IEnumerable<Guid> userKeys

    The keys of the users to check for.

    Returns
    Type Description
    Task<System.Boolean>

    Returns true if authorization is successful, otherwise false.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • IsDeniedAsync(IUser, Guid)
      • IsDeniedAsync(IUser, IEnumerable<Guid>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX