Commits

Anonymous committed 07e621b

[svn r5110] only display admin panels if repository_dir is set; fixes #4404

Comments (0)

Files changed (1)

0.11/repository_hook_system/admin.py

         """
         if req.perm.has_permission('TRAC_ADMIN'): # XXX needed?
             system = self.system()
-            if system is not None:
+            if system is not None and self.env.config.get('trac', 'repository_dir'):
                 for hook in system.available_hooks():
                     yield ('repository_hooks', 'Repository Hooks', hook, hook)