Skip to content

Commit

Permalink
[#2939] make sure user created in sysadmin cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Nov 16, 2012
1 parent 187faa1 commit 9601e41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/lib/cli.py
Expand Up @@ -541,7 +541,9 @@ def add(self):
else:
print 'Exiting ...'
return

user.sysadmin = True
model.Session.add(user)
model.repo.commit_and_remove()
print 'Added %s as sysadmin' % username

Expand Down

0 comments on commit 9601e41

Please sign in to comment.