Fix not to display edit manually button if forbidden

This commit is contained in:
iliajie
2022-07-30 04:02:31 +03:00
parent 32507142ae
commit 5b359e9043

View File

@@ -68,8 +68,8 @@ print "<table border><tr><td $cb><pre>\n\n";
&show_directives($conf, 0);
print "</pre></td></tr></table>\n";
print "</td></tr>\n";
if ($in{'virt'} || $in{'file'} || defined($in{'idx'})) {
if ($access{'types'} eq '*' &&
($in{'virt'} || $in{'file'} || defined($in{'idx'}))) {
print "<tr>\n";
print "<td><form action=manual_form.cgi>";
print "<input type=submit name=these value='$text{'show_these'}'>";