server/hook.py
changeset 4106 ea4e93f9b151
parent 4104 7e478d7caf20
child 4307 7fba9c34c88f
--- a/server/hook.py	Thu Dec 10 12:55:25 2009 +0100
+++ b/server/hook.py	Thu Dec 10 16:20:02 2009 +0100
@@ -117,9 +117,7 @@
         config = kwargs['repo'].config
     else:
         config = req.vreg.config
-    if cls.category in config.disabled_hooks_categories:
-        return 0
-    return 1
+    return config.is_hook_activated(cls)
 
 @objectify_selector
 @lltrace