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