Let third-party scripts know if the user is a moderator #3341
Labels
3rd party contributions
Contributions from 3rd party apps through the Product WRITE API
🔐 API auth
The API requires auth in order to perform editing.There is a common mechanism & a Robotoff mechanism
API READ
All READ APIs include Product, Search…
API
Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…)
✨ Feature
Features or enhancements to Open Food Facts server
frontend
HTML
hunger games
🎯 P1 candidate
P2
Power User Script
⏰ Stale
This issue hasn't seen activity in a while. You can try documenting more to unblock it.
What
Proposed solution
I'm not sure about the best solution. It can be:
<span id="user_id">charlesnepote</span>
could be enhanced to<span id="user_id" class="moderator">charlesnepote</span>
<body class="moderator-user">
; that way, for example, the page style could be modified to let the user knows he's using a moderator accountI think solution 2 might be the most interesting.
Number of products impacted
The impact should be important, letting all moderators (more than 20-30 persons) to easily use Mass Update feature. For the moment, Mass Update feature in Power User Script is a bad hack only given to few people.
Note: as it's an important feature for third-party scripts, we should add unit tests to ensure it's working without regressions by the time.
Part of
The text was updated successfully, but these errors were encountered: