Class UserEditorAuthorizationHelper
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Editors
Assembly: Umbraco.Core.dll
Syntax
public class UserEditorAuthorizationHelper : object
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, IEnumerable<Int32>, IEnumerable<Int32>, 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<System.Int32> | startContentIds | The start content ids of the user being saved (can be null or empty) |
IEnumerable<System.Int32> | startMediaIds | The start media ids of the user being saved (can be null or empty) |
IEnumerable<System.String> | userGroupAliases | The user aliases of the user being saved (can be null or empty) |
Returns
Type | Description |
---|---|
Attempt<System.String> |