In staging koji grant admin perm to mbs.stg

This commit is contained in:
Mikolaj Izdebski 2018-03-08 03:06:09 +00:00
parent 58022df256
commit e4eec6ddea

View file

@ -94,8 +94,9 @@ insert into host_channels (host_id, channel_id) values (
-- Add some people to be admins, only in staging. Feel free to grow this list..
{% for username in ['modularity', 'mizdebsk', 'psabata', 'jkaluza', 'fivaldi', 'mprahl'] %}
{% for username in ['modularity', 'mizdebsk', 'psabata', 'jkaluza', 'fivaldi', 'mprahl', 'mbs/mbs.stg.fedoraproject.org'] %}
select now() as time, 'adding staging admin {{username}}' as msg;
insert into users (name, usertype, status) values ('{{username}}', 0, 0) on conflict do nothing;
insert into user_perms (user_id, perm_id, active, creator_id) values (
(select id from users where name='{{username}}'),
(select id from permissions where name='admin'),