BuildMaster SDK Reference
Version:

ValidatePrivileges(Inedo.Security.ScopedTask scopedTask) Method

Verifies that the current user can perform the specified task.

Syntax

public static void ValidatePrivileges(Inedo.Security.ScopedTask scopedTask)

Parameters

scopedTask
Type: Inedo.Security.ScopedTask

The task to test.

Exceptions

Inedo.Security.SecuredTaskDeniedException

The user cannot perform the specified task.