PublicAPI.Projects.Permissions.AddBudgetManagePermission ELMA API Documentation
Add the permission to manage the budget to the project role
 
 
Syntax

public void AddBudgetManagePermission(
	Project project,
	ProjectRole projectRole
)

Parameters

project
Type: Project
Project. Object. Access path: PublicAPI.Projects.Project
projectRole
Type: ProjectRole
Project role, permissions are added for. 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);

//add the permission
PublicAPI.Projects.Permissions.AddBudgetManagePermission(project, projectRole);

//WARNING!! The projectRole must be in the project 
//otherwise, the function will not work 
//This method will also add a permission to view the budget
See Also