From 5b359e9043a2f80374e81b522c5219aa2010c5fd Mon Sep 17 00:00:00 2001 From: iliajie Date: Sat, 30 Jul 2022 04:02:31 +0300 Subject: [PATCH] Fix not to display edit manually button if forbidden --- apache/show.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/show.cgi b/apache/show.cgi index 74d4d7889..a90a15b7c 100755 --- a/apache/show.cgi +++ b/apache/show.cgi @@ -68,8 +68,8 @@ print "
\n\n";
 &show_directives($conf, 0);
 print "
\n"; print "\n"; - -if ($in{'virt'} || $in{'file'} || defined($in{'idx'})) { +if ($access{'types'} eq '*' && + ($in{'virt'} || $in{'file'} || defined($in{'idx'}))) { print "\n"; print "
"; print "";