fix: [update v2.5]

This commit is contained in:
Terrtia 2019-11-25 10:27:32 +01:00
parent edcfb4fcaa
commit 886b88d474
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -25,7 +25,7 @@ if __name__ == '__main__':
r_serv.zadd('ail:all_role', 4, 'user_no_api') r_serv.zadd('ail:all_role', 4, 'user_no_api')
r_serv.zadd('ail:all_role', 5, 'read_only') r_serv.zadd('ail:all_role', 5, 'read_only')
for user in r_serv.hkeys(user:all): for user in r_serv.hkeys('user:all'):
r_serv.sadd('user_role:user', user) r_serv.sadd('user_role:user', user)
r_serv.sadd('user_role:user_no_api', user) r_serv.sadd('user_role:user_no_api', user)
r_serv.sadd('user_role:read_only', user) r_serv.sadd('user_role:read_only', user)