mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 20:07:42 +02:00
adding redirect to selfmodify on /
This commit is contained in:
parent
11c4196959
commit
b5a8e302d1
1 changed files with 4 additions and 0 deletions
|
@ -690,6 +690,10 @@ class LdapCherry(object):
|
||||||
"""
|
"""
|
||||||
self._check_auth(must_admin=False)
|
self._check_auth(must_admin=False)
|
||||||
is_admin = self._check_admin()
|
is_admin = self._check_admin()
|
||||||
|
if is_admin:
|
||||||
|
raise cherrypy.HTTPRedirect('selfmodify')
|
||||||
|
else:
|
||||||
|
raise cherrypy.HTTPRedirect('selfmodify')
|
||||||
return self.temp_index.render(is_admin=is_admin)
|
return self.temp_index.render(is_admin=is_admin)
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue