class SpendProfilePermissionRules extends BasePermissionRules {

    @PermissionRule(
            value = "VIEW_SPEND_PROFILE",
            description = "Monitoring officer can view Spend Profile data for the projects they are assigned to")
    public boolean monitoringOfficerCanViewProjectsSpendProfileData(ProjectOrganisationCompositeId projectOrganisationCompositeId, UserResource user) {
        return isMonitoringOfficer(projectOrganisationCompositeId.getProjectId(), user.getId());
    }

}