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)
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`.
Updated•12 years ago
|
Priority: -- → P3
Comment 2•12 years ago
|
||
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
Comment 3•12 years ago
|
||
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.
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
(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.
Updated•11 years ago
|
Whiteboard: [repoman]
Updated•10 years ago
|
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.
Description
•