Closed Bug 933846 Opened 12 years ago Closed 10 years ago

Surface privileges rather than groups in account permissions

Categories

(Marketplace Graveyard :: API, defect, P5)

Avenir
x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: robhudson, Unassigned)

References

Details

(Whiteboard: [repoman])

Right now we do something like: 'lookup': allowed('AccountLookup', '%') in the permissions API. But this breaks down when we start thinking about exposing the "Staff" group which can have one of many privileges that might also be shared with other groups. I propose this return the individual privileges the user has. (I.e. iterate over the user's groups, get the rules for that group, splitting on comma) The front-end could then be more selected, and do something like `"Stats:View" in privs`.
+1 I love the idea of this
Component: General → API
Depends on: 910548
Priority: -- → P3
Stats kinda needs this since we're abusing the overly restrictive "admin" flag in the interim even though people have view stats access. Can we bump this in priority? I only asked to appear polite I'm bumping it anyway!
Priority: P3 → P2
How is the API spitting out group permissions secured? I didn't see it in our API docs. I agree this bug is important, no one can see stats right now.
(In reply to Chuck Harmston [:chuck] from comment #4) > It's documented here: > http://firefox-marketplace-api.readthedocs.org/en/latest/topics/accounts. > html#get--api-v1-account-permissions-mine- Got it, thanks. I see it says "Requires Authentication" - is that documented also? I'm just trying to ensure that we aren't opening up the possibility of me making a request from bad.com to that endpoint on the user's behalf and learning that I have a logged-in privileged user.
Whiteboard: [repoman]
Dropping priority, stats uses something else now.
Priority: P2 → P5
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.