Class UserEditorAuthorizationHelper
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Editors
Assembly: Umbraco.Core.dll
Syntax
public class UserEditorAuthorizationHelper
Constructors
View SourceUserEditorAuthorizationHelper(IContentService, IMediaService, IEntityService, AppCaches)
Declaration
public UserEditorAuthorizationHelper(IContentService contentService, IMediaService mediaService, IEntityService entityService, AppCaches appCaches)
Parameters
Type | Name | Description |
---|---|---|
IContentService | contentService | |
IMediaService | mediaService | |
IEntityService | entityService | |
AppCaches | appCaches |
Methods
View SourceIsAuthorized(IUser, IUser, Nullable<IEnumerable<Int32>>, Nullable<IEnumerable<Int32>>, Nullable<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) |
System.Nullable<IEnumerable<System.Int32>> | startContentIds | The start content ids of the user being saved (can be null or empty) |
System.Nullable<IEnumerable<System.Int32>> | startMediaIds | The start media ids of the user being saved (can be null or empty) |
System.Nullable<IEnumerable<System.String>> | userGroupAliases | The user aliases of the user being saved (can be null or empty) |
Returns
Type | Description |
---|---|
Attempt<System.String> |