From 181597e273414b56fb01f22eb2c9b998c23df3fe Mon Sep 17 00:00:00 2001 From: kakwa Date: Sat, 30 May 2015 22:19:57 +0200 Subject: [PATCH] adding a search page dedicated for admin --- ldapcherry/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index b1dcc78..435375a 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -447,6 +447,12 @@ class LdapCherry(object): @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