fix config menu access for message templates without Configuration, RT#25994
[freeside.git] / httemplate / elements / menu.html
index 9b5478e..8e369f4 100644 (file)
@@ -633,8 +633,8 @@ my $wiki = 'http://www.freeside.biz/mediawiki/index.php';
 my $doc_link = $conf->config('support-key')
                  ? "$wiki/Supported:Documentation"
                  : $curuser->access_right('Configuration')
-                   ? "$wiki/Freeside:2.1:Documentation"
-                   : "$wiki/Freeside:2.1:Documentation:User";
+                   ? "$wiki/Freeside:2.3:Documentation"
+                   : "$wiki/Freeside:2.1:Documentation:User"; #no page for other versions yet :/
 
 eval "use RT;"
   if $conf->config('ticket_system') eq 'RT_Internal';
@@ -707,7 +707,11 @@ $menu{'Configuration'} = [ \%config_menu, 'Configuration and setup' ]
   || $curuser->access_right('Broadband configuration')
   || $curuser->access_right('Phone configuration')
   || $curuser->access_right('Edit advertising sources')
-  || $curuser->access_right('Edit global advertising sources');
+  || $curuser->access_right('Edit global advertising sources')
+  || $curuser->access_right('View templates')
+  || $curuser->access_right('View global templates')
+  || $curuser->access_right('Edit templates')
+  || $curuser->access_right('Edit global templates');
 $menu{'Help'} = [ \%help_menu, '' ];