schema.py
changeset 4834 b718626a0e60
parent 4759 af2e6c377c71
child 4835 13b0b96d7982
--- a/schema.py	Mon Mar 08 18:31:36 2010 +0100
+++ b/schema.py	Mon Mar 08 19:02:35 2010 +0100
@@ -1087,7 +1087,7 @@
         if hasattr(cw, 'is_super_session'):
             # cw is a server session
             hasperm = cw.is_super_session or \
-                      not cw.vreg.config.is_hook_category_activated('integrity') or \
+                      not cw.is_hooks_category_activated('integrity') or \
                       cw.user.has_permission(PERM_USE_TEMPLATE_FORMAT)
         else:
             hasperm = cw.user.has_permission(PERM_USE_TEMPLATE_FORMAT)