diff rhodecode/lib/base.py @ 4045:9b4ba12ef8c3

Add ini option to controll custom advanced hooks settings
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 27 Jun 2013 00:47:15 +0200
parents cdf10b3df899
children 3b136af34329
line wrap: on
line diff
--- a/rhodecode/lib/base.py	Thu Jun 27 00:30:06 2013 +0200
+++ b/rhodecode/lib/base.py	Thu Jun 27 00:47:15 2013 +0200
@@ -279,6 +279,7 @@
         ## INI stored
         self.cut_off_limit = int(config.get('cut_off_limit'))
         c.visual.allow_repo_location_change = str2bool(config.get('allow_repo_location_change', True))
+        c.visual.allow_custom_hooks_settings = str2bool(config.get('allow_custom_hooks_settings', True))
 
         c.repo_name = get_repo_slug(request)  # can be empty
         c.backends = BACKENDS.keys()