Interface IUserPermissionAuthorizer
Authorizes user access.
Namespace: Umbraco.Cms.Core.Security.Authorization
Assembly: Umbraco.Core.dll
Syntax
public interface IUserPermissionAuthorizer
Methods
View SourceIsDeniedAsync(IUser, Guid)
Authorizes whether the current user has access to the specified user account.
Declaration
virtual Task<bool> IsDeniedAsync(IUser currentUser, Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
IUser | currentUser | The current user. |
Guid | userKey | The key of the user to check for. |
Returns
Type | Description |
---|---|
Task<System. |
Returns |
IsDeniedAsync(IUser, IEnumerable<Guid>)
Authorizes whether the current user has access to the specified user account(s).
Declaration
Task<bool> IsDeniedAsync(IUser currentUser, IEnumerable<Guid> userKeys)
Parameters
Type | Name | Description |
---|---|---|
IUser | currentUser | The current user. |
IEnumerable<Guid> | userKeys | The keys of the users to check for. |
Returns
Type | Description |
---|---|
Task<System. |
Returns |