Class UserEditorAuthorizationHelper
Inheritance
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?, 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> |