PublicAPI.Projects.Permissions.DeleteBudgetViewPermission ELMA API Documentation
Delete the project role permission to view budget
 
 
Syntax

public void DeleteBudgetViewPermission(
	Project project,
	ProjectRole projectRole
)

Parameters

project
Type: Project
Project. Object. Access path: PublicAPI.Projects.Project
projectRole
Type: ProjectRole
Project role. Object. Access path: PublicAPI.Projects.ProjectRole
Examples

//load the project by ID 
var project = PublicAPI.Projects.Project.Load(3);
//load the project role by ID 
var projectRole = PublicAPI.Projects.ProjectRole.Load(3);

//delete permission
PublicAPI.Projects.Permissions.DeleteBudgetViewPermission(project, projectRole);

//WARNING!! The projectRole must be in the project 
//otherwise, the function will not work 
//This method will also delete the permission so manage project budget
See Also