Search Results for

    Show / Hide Table of Contents
    View Source

    Class UserEditorAuthorizationHelper

    Provides authorization helper methods for user editor operations in the backoffice.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Editors
    Assembly: Umbraco.Core.dll
    Syntax
    public class UserEditorAuthorizationHelper
    Remarks

    This helper validates that the current user has the necessary permissions to modify another user's settings, including start nodes, user groups, and section access.

    Constructors

    View Source

    UserEditorAuthorizationHelper(IContentService, IMediaService, IEntityService, AppCaches)

    Initializes a new instance of the UserEditorAuthorizationHelper class.

    Declaration
    public UserEditorAuthorizationHelper(IContentService contentService, IMediaService mediaService, IEntityService entityService, AppCaches appCaches)
    Parameters
    Type Name Description
    IContentService contentService

    The content service.

    IMediaService mediaService

    The media service.

    IEntityService entityService

    The entity service.

    AppCaches appCaches

    The application caches.

    Methods

    View Source

    IsAuthorized(IUser?, IUser?, IEnumerable<int>?, IEnumerable<int>?, IEnumerable<string>?)

    Checks if the current user has access to save the user data

    Declaration
    public Attempt<string?> IsAuthorized(IUser? currentUser, IUser? savingUser, IEnumerable<int>? startContentIds, IEnumerable<int>? startMediaIds, IEnumerable<string>? userGroupAliases)
    Parameters
    Type Name Description
    IUser currentUser

    The current user trying to save user data

    IUser savingUser

    The user instance being saved (can be null if it's a new user)

    IEnumerable<int> startContentIds

    The start content ids of the user being saved (can be null or empty)

    IEnumerable<int> startMediaIds

    The start media ids of the user being saved (can be null or empty)

    IEnumerable<string> userGroupAliases

    The user aliases of the user being saved (can be null or empty)

    Returns
    Type Description
    Attempt<string>
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX