From 6c60a2e0c335ecc907cfcd576165be45021086a9 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 6 Oct 2014 23:32:34 -0400 Subject: Add auto-auth requirement to all admin pages Instead ofhaving to explicitly decorate all methods with auth_protect() use the fact all pages go through Page.__call__ to conditionally check if the user is anoynous and set a default when instantiating AdminPage so that all admin pages require authentication. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- ipsilon/admin/providers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ipsilon/admin/providers.py') diff --git a/ipsilon/admin/providers.py b/ipsilon/admin/providers.py index ce21e16..eea61e7 100755 --- a/ipsilon/admin/providers.py +++ b/ipsilon/admin/providers.py @@ -19,7 +19,7 @@ import cherrypy -from ipsilon.util.page import admin_protect, auth_protect +from ipsilon.util.page import admin_protect from ipsilon.providers.common import FACILITY from ipsilon.admin.common import AdminPluginPage from ipsilon.admin.common import AdminPage @@ -57,7 +57,6 @@ class ProviderPlugins(AdminPage): enabled=enabled_plugins, menu=self._master.menu) - @auth_protect def root(self, *args, **kwargs): return self.root_with_msg() -- cgit