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 |
---|---|---|
IContent |
contentService | |
IMedia |
mediaService | |
IEntity |
entityService | |
App |
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. |
startContentIds | The start content ids of the user being saved (can be null or empty) |
System. |
startMediaIds | The start media ids of the user being saved (can be null or empty) |
System. |
userGroupAliases | The user aliases of the user being saved (can be null or empty) |
Returns
Type | Description |
---|---|
Attempt<System. |