mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Fix a copy paste error that broke list command
This commit is contained in:
@@ -133,9 +133,9 @@ def list(organization=None):
|
||||
"""List all users"""
|
||||
if organization:
|
||||
org = models.Organization.get_by_slug(organization)
|
||||
users = models.Users.select().where(models.Users.org==org.id)
|
||||
users = models.User.select().where(models.User.org==org.id)
|
||||
else:
|
||||
users = models.DataSource.select()
|
||||
users = models.User.select()
|
||||
for i, user in enumerate(users):
|
||||
if i > 0:
|
||||
print "-" * 20
|
||||
|
||||
Reference in New Issue
Block a user