make sure users created through tenant view are not admins
Scott Baker [Wed, 28 Jan 2015 07:07:51 +0000 (23:07 -0800)]
planetstack/core/dashboard/views/tenant.py

index 762409e..a4b8e99 100644 (file)
@@ -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)