We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now someone which is moderator on open food facts, does not have access to nutripatrol.
(see report from Teleperion87 on slack)
Every moderators of Open Food Facts (users with the property "moderator" checked)
should be able to access nutri patrol.
Currently we use a static file const/moderators.ts, we should instead use openfoodfacts API to get this information.
const/moderators.ts
Open Food Facts now returns this info in a JSON in auth.pl, using body=1 parameter: https://world.openfoodfacts.org/cgi/auth.pl?body=1
Eg:
{ "status": 1, "status_verbose": "user signed-in", "user": { "admin": 0, "moderator": 1, "name": "TEST" }, "user_id": "test-test" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What
Right now someone which is moderator on open food facts, does not have access to nutripatrol.
(see report from Teleperion87 on slack)
Expected behavior
Every moderators of Open Food Facts (users with the property "moderator" checked)
should be able to access nutri patrol.
More info
Currently we use a static file
const/moderators.ts
, we should instead use openfoodfacts API to get this information.Open Food Facts now returns this info in a JSON in auth.pl, using body=1 parameter: https://world.openfoodfacts.org/cgi/auth.pl?body=1
Eg:
The text was updated successfully, but these errors were encountered: