Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMediaPermissionAuthorizer

    Authorizes media access.

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

    Methods

    View Source

    IsDeniedAsync(IUser, Guid)

    Authorizes whether the current user has access to the specified media item.

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

    The current user.

    Guid mediaKey

    The key of the media item 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 media item(s).

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

    The current user.

    IEnumerable<Guid> mediaKeys

    The keys of the media items to check for.

    Returns
    Type Description
    Task<System.Boolean>

    Returns true if authorization is successful, otherwise false.

    View Source

    IsDeniedAtRecycleBinLevelAsync(IUser)

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

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

    The current user.

    Returns
    Type Description
    Task<System.Boolean>

    Returns true if authorization is successful, otherwise false.

    View Source

    IsDeniedAtRootLevelAsync(IUser)

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

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

    The current user.

    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>)
      • IsDeniedAtRecycleBinLevelAsync(IUser)
      • IsDeniedAtRootLevelAsync(IUser)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX