Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Updated permissions for credits groups and QA.
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Mar 2, 2012
1 parent 3081c98 commit 1517cac
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/access/tests.py
Expand Up @@ -48,6 +48,7 @@ def test_match_rules():
'Locales:Edit',
'Locale.de:Edit',
'Reviews:Edit',
'None:None',
)

for rule in rules:
Expand Down
24 changes: 24 additions & 0 deletions migrations/336-perms-credits-qa.sql
@@ -0,0 +1,24 @@
INSERT INTO groups (id, name, rules, notes, created, modified) VALUES
(50046, 'Developers Credits', 'None:None', '', NOW(), NOW());
INSERT INTO groups_users (
SELECT NULL, 50046, groups_users.user_id FROM groups, groups_users
WHERE groups.id=groups_users.group_id AND groups.name='Developers' AND groups.id < 50000);

INSERT INTO groups (id, name, rules, notes, created, modified) VALUES
(50047, 'Past Developers Credits', 'None:None', '', NOW(), NOW());
INSERT INTO groups_users (
SELECT NULL, 50047, groups_users.user_id FROM groups, groups_users
WHERE groups.id=groups_users.group_id AND groups.name='Past Developers' AND groups.id < 50000);

INSERT INTO groups (id, name, rules, notes, created, modified) VALUES
(50048, 'Other Contributors Credits', 'None:None', '', NOW(), NOW());
INSERT INTO groups_users (
SELECT NULL, 50048, groups_users.user_id FROM groups, groups_users
WHERE groups.id=groups_users.group_id AND groups.name='Other Contributors' AND groups.id < 50000);

UPDATE groups SET name=CONCAT(name, ' (OLD)') WHERE name='QA';
INSERT INTO groups (id, name, rules, notes, created, modified) VALUES
(50049, 'QA', 'None:None', '', NOW(), NOW());
INSERT INTO groups_users (
SELECT NULL, 50049, groups_users.user_id FROM groups, groups_users
WHERE groups.id=groups_users.group_id AND groups.name='QA (OLD)' AND groups.id < 50000);

0 comments on commit 1517cac

Please sign in to comment.