class BankDetailsPermissionRules extends BasePermissionRules {

    @PermissionRule(
            value = "UPDATE",
            description = "Project finance users can update any organisations bank details")
    public boolean projectFinanceUsersCanUpdateAnyOrganisationsBankDetails(BankDetailsResource bankDetailsResource, UserResource user) {
        return isProjectFinanceUser(user) && isProjectActive(bankDetailsResource.getProject());
    }

}