cleaning up landing-page
This commit is contained in:
parent
062c45a92d
commit
05f4514b5c
2 changed files with 10 additions and 17 deletions
|
|
@ -83,8 +83,6 @@
|
|||
{{ user.username }}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -26,11 +26,6 @@ def landingpage(request):
|
|||
if request.user.is_authenticated():
|
||||
return HttpResponseRedirect('/account')
|
||||
form = LoginForm()
|
||||
is_ceymaster = is_admin = False
|
||||
if 'ceymaster' in [g.name for g in request.user.groups.all()]:
|
||||
is_ceymaster = True
|
||||
if 'ldap_admins' in [g.name for g in request.user.groups.all()]:
|
||||
is_admin = True
|
||||
groups = Group.objects.all()
|
||||
try:
|
||||
admins = Group.objects.get(name="ldap_admins").user_set.all()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue