Skip to content

Commit

Permalink
adding redirect to selfmodify on /
Browse files Browse the repository at this point in the history
  • Loading branch information
kakwa committed Jun 25, 2015
1 parent 11c4196 commit b5a8e30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ldapcherry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,10 @@ def index(self):
"""
self._check_auth(must_admin=False)
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)

@cherrypy.expose
Expand Down

0 comments on commit b5a8e30

Please sign in to comment.