fix: [update v2.5]

pull/453/head v2.5
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
1 changed files with 1 additions and 1 deletions

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)