PermissionService Class

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Service layer for managing permissions.

public static class PermissionService
Inheritance:
System.Object → PermissionService

Methods

AssertSystemPermission(Permission, User) Assert that the specified user has the requested system permission.
GetPermissions(IEntity, User) Get a user's permissions for an entity.
GetSystemPermissions(User) Get a user's system permissions.
HasPermission(IEntity, Permission, User) Check if the specified user has the requested permission to the specified entity.
HasSystemPermission(Permission, User) Check if the specified user has the requested system permission.
Merge(IEnumerableControlEntry>) Merge an access control list into one permission entry.