mirror of
https://github.com/kakwa/ldapcherry
synced 2025-02-16 15:43:19 +01:00
adding redirect to selfmodify on /
This commit is contained in:
parent
11c4196959
commit
b5a8e302d1
@ -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…
x
Reference in New Issue
Block a user