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 #32186 #32198

Open
wants to merge 8 commits into
base: 20.0
Choose a base branch
from
Open

FIX #32186 #32198

wants to merge 8 commits into from

Conversation

hregis
Copy link
Contributor

@hregis hregis commented Dec 2, 2024

No description provided.

@hregis hregis requested a review from eldy December 2, 2024 10:30
@eldy eldy added the PR to fix - Conflict or CI error to solve The PHP unit tests return something wrong. Check details to know what to fix or solve the conflicts. label Dec 8, 2024
@hregis
Copy link
Contributor Author

hregis commented Jan 6, 2025

@eldy ready

@@ -286,7 +286,8 @@
}
}*/

if (!$user->hasRight('societe', 'client', 'voir')) {
// Check only if it's an internal user
if (empty($user->socid) && !$user->hasRight('societe', 'client', 'voir')) {
Copy link
Member

Choose a reason for hiding this comment

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

Do you mean
If (!empty(...
?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we first have to check that $user is internal, so the fix proposed by @hregis is ok

@eldy eldy added Discussion Some questions or discussions are opened and wait answers of author or other people to be processed and removed PR to fix - Conflict or CI error to solve The PHP unit tests return something wrong. Check details to know what to fix or solve the conflicts. labels Jan 6, 2025
@hregis
Copy link
Contributor Author

hregis commented Jan 14, 2025

@eldy cette PR #32627 est plus complète et je suis complémentaire sur certains fichiers

@hregis hregis requested a review from eldy January 14, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants