class FinanceTotalsPermissionRules extends BasePermissionRules {

    @PermissionRule(value = "SEND_APPLICATION_TOTALS", description = "Internal users and lead applicants are allowed to send the application totals.")
    public boolean leadApplicantAndInternalUsersCanUpdateTotalsForAnApplication(final ApplicationResource applicationResource,
                                                                                final UserResource user) {
        return isLeadApplicant(applicationResource.getId(), user) || isInternal(user) || isSystemMaintenanceUser(user);
    }

}