PermissionService.GetPermissions Method

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

GetPermissions(IEntity, User)

Get a user's permissions for an entity.

public static ICollection<Permission> GetPermissions(IEntity entity, User user = null)

Parameters

entity
IEntity

The entity for which to get permissions.

user
User

The User to get permissions for, null gets access for the current User.

Returns

System.Collections.Generic.ICollection

Returns the list of permissions for the user and entity.