Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix : erreur sql sur la liste des tiers #496

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

ATM-NicolasV
Copy link

No description provided.

//elseif ($search_sale || (empty($user->rights->societe->client->voir) && (empty($conf->global->MAIN_USE_ADVANCED_PERMS) || empty($user->rights->societe->client->readallthirdparties_advance)) && !$socid)) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
} elseif (!empty($search_sale) && $search_sale != '-1' || (empty($user->rights->societe->client->voir) && !$socid)) {
$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code commenté à clean
et utilise !hasRight()

@atm-jonathan atm-jonathan merged commit 17e0239 into 18.0_ares Aug 8, 2024
1 of 3 checks passed
@ATM-NicolasV ATM-NicolasV deleted the fix_listeTiers branch August 8, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants