Check user permissions on a given entity
Namespace: Cartella.InterfacesAssembly: CartellaData (in CartellaData.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
C# |
---|
bool UserHasPermission( IEntity entity, IUser user, CartellaPermission requiredPermissions, bool hasAll ) |
Visual Basic |
---|
Function UserHasPermission ( _ entity As IEntity, _ user As IUser, _ requiredPermissions As CartellaPermission, _ hasAll As Boolean _ ) As Boolean |
Visual C++ |
---|
bool UserHasPermission( IEntity^ entity, IUser^ user, CartellaPermission requiredPermissions, bool hasAll ) |
Parameters
- entity
- Type: Cartella.Interfaces..::..IEntity
the entity to check
- user
- Type: Cartella.Interfaces..::..IUser
the user to check
- requiredPermissions
- Type: Cartella.Interfaces..::..CartellaPermission
permssions to check
- hasAll
- Type: System..::..Boolean
if true, returns true if user has all permissions listed, otherwise returns true if user has any of listed permissions