class SpendProfilePermissionRules extends BasePermissionRules {

    @PermissionRule(value = "COMPLETE_SPEND_PROFILE_REVIEW", description = "Only a Project Manager can complete the project's spend profiles review")
    public boolean projectManagerCanCompleteSpendProfile(ProjectCompositeId projectCompositeId, UserResource user) {
        return isProjectManager(projectCompositeId.id(), user.getId()) &&
                isProjectActive(projectCompositeId.id());
    }

}