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

Produceur platform does not work for moderators (failing on org selection) #8125

Closed
alexgarel opened this issue Feb 20, 2023 · 2 comments · Fixed by #8149
Closed

Produceur platform does not work for moderators (failing on org selection) #8125

alexgarel opened this issue Feb 20, 2023 · 2 comments · Fixed by #8149
Assignees
Labels
🐛 bug This is a bug, not a feature request. 🎯 P0 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers

Comments

@alexgarel
Copy link
Member

alexgarel commented Feb 20, 2023

Describe the bug

If you are a moderator on the pro plateform (and not an admin),
as you type a org name you want to reach on home page,
this fails (with different error messages).

To Reproduce

  1. create a new user on pro platform (new edition, aka .dev for now), logout
  2. login as an admin, and make this user moderator, logout
  3. log back in with new user
  4. try to reach an org, see it fail with a strange error message

Expected behavior

This should display products from that org to the moderator.

My guess: we have a wrong condition on a "if" in user.pl.

Part of

@alexgarel alexgarel added 🐛 bug This is a bug, not a feature request. 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers labels Feb 20, 2023
@alexgarel
Copy link
Member Author

@stephanegigandet stephanegigandet self-assigned this Feb 28, 2023
@stephanegigandet
Copy link
Contributor

There's a broken '' => 'titimars' entry in users_emails.sto which is causing a check in Users.pm to fail, and we also not be calling this function, fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. 🎯 P0 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants