mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
7 lines
292 B
Python
7 lines
292 B
Python
from redash import models
|
|
|
|
if __name__ == '__main__':
|
|
default_group = models.Group.select(models.Group.id, models.Group.permissions).where(models.Group.name=='default').first()
|
|
default_group.permissions.append('schedule_query')
|
|
default_group.save(only=[models.Group.permissions])
|