BuildMaster SDK Reference
Version:

ValidatePrivileges(Inedo.Security.BuildMasterSecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId) Method

Verifies that the current user can perform the specified task.

Syntax

public static void ValidatePrivileges(Inedo.Security.BuildMasterSecuredTask task, int? applicationGroupId, int? applicationId, int? environmentId, int? serverId)

Parameters

task
Type: Inedo.Security.BuildMasterSecuredTask

The task to test.

applicationGroupId
Type: int?

The current application group ID in scope.

applicationId
Type: int?

The current application ID in scope.

environmentId
Type: int?

The current environment ID in scope.

serverId
Type: int?

The current server ID in scope.

Exceptions

Inedo.Security.SecuredTaskDeniedException

The user cannot perform the specified task.