Skip to content

Commit

Permalink
adding a search page dedicated for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
kakwa committed May 30, 2015
1 parent 22364c0 commit 181597e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ldapcherry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,12 @@ def index(self, **params):

@cherrypy.expose
def searchuser(self):
""" search user page """
self._check_auth(must_admin=False)
pass

@cherrypy.expose
def searchadmin(self):
""" search user page """
self._check_auth(must_admin=True)
pass
Expand Down

0 comments on commit 181597e

Please sign in to comment.