EntityExtensions.HasPermission Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

HasPermission(IEntity, Permission, User)

Check if the current user has the requested permission to the specified entity.

public static bool HasPermission(this IEntity entity, Permission requested, User user = null)

Parameters

entity
IEntity
requested
Permission
user
User

Returns

System.Boolean