git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e999b
)
make sure users created through tenant view are not admins
author
Scott Baker
<smbaker@gmail.com>
Wed, 28 Jan 2015 07:07:51 +0000
(23:07 -0800)
committer
Scott Baker
<smbaker@gmail.com>
Wed, 28 Jan 2015 07:07:51 +0000
(23:07 -0800)
planetstack/core/dashboard/views/tenant.py
patch
|
blob
|
history
diff --git
a/planetstack/core/dashboard/views/tenant.py
b/planetstack/core/dashboard/views/tenant.py
index
762409e
..
a4b8e99
100644
(file)
--- a/
planetstack/core/dashboard/views/tenant.py
+++ b/
planetstack/core/dashboard/views/tenant.py
@@
-17,7
+17,8
@@
class RequestAccessView(View):
email=BaseUserManager.normalize_email(email),
firstname=firstname,
lastname=lastname,
- is_active=False
+ is_active=False,
+ is_admin=False
)
user.save()
user.site=Site.objects.get(name=site)