redash/migrations/0012_add_list_users_permission.py
Arik Fraimovich 993a861c78 Users UI.
2015-09-06 10:15:25 +03:00

7 lines
197 B
Python

from redash import models
if __name__ == '__main__':
default_group = models.Group.get(models.Group.name=='default')
default_group.permissions.append('list_users')
default_group.save()