Click or drag to resize

IAclHierarchyItemAsyncGetCurrentUserPrivilegeSetAsync Method

IT Hit WebDAV Classes Reference
Retrieves the exact set of privileges (as computed by the server) granted to the currently authenticated HTTP user. Aggregate privileges and their contained privileges are listed. A user-agent can use the value of this property to adjust its user interface to make actions inaccessible (e.g., by graying out a menu item or button) for which the current principal does not have permission. This property is also useful for determining what operations the current principal can perform, without having to actually execute an operation.

Namespace:  ITHit.WebDAV.Server.Acl
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 11.3.10719
Task<IEnumerable<Privilege>> GetCurrentUserPrivilegeSetAsync()

Task<IEnumerable<Privilege>> GetCurrentUserPrivilegeSetAsync()

Return Value

Type: TaskIEnumerablePrivilege
List of current user privileges.
NeedPrivilegesExceptionNot enough permissions.
DavExceptionIn case of other errors.
See Also