Closed Bug 583862 Opened 12 years ago Closed 11 years ago

Access denied on /admin/models/ for an admin in zamboni

Categories

(addons.mozilla.org Graveyard :: Admin/Editor Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: clouserw)

References

()

Details

(Whiteboard: [z])

Attachments

(1 file)

Attached image screenshot
Logging into https://next.addons.mozilla.org/z/en-US/admin/models/ with my admin account shows -

"Site administration

You don't have permission to edit anything."

Give me my power back!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I have this problem every time we do a DB refresh
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I don't. Are you an admin in prod?
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → WORKSFORME
(In reply to comment #2)
> I don't. Are you an admin in prod?

ya
Assignee: nobody → clouserw
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
A script that bumped accounts who don't want admin access in prod, but do in preview would be good. I had to do myself and sancus yesterday.
Alright, after future production dumps this is the SQL to run:

UPDATE groups SET rules="*:*" where name="QA" limit 1;
UPDATE auth_user SET is_superuser=1 WHERE id IN (SELECT user_id FROM groups_users JOIN groups ON groups.id = groups_users.group_id WHERE groups.name="QA");

To add users, we just add them to the "QA" group in production -- after they've verified that they have an excellent password.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
This solved my problem. Thanks, clouserw!
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.