X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/d67f6ce936647c7312b944d2d2c0c0da13352e1f..3e5f525985e4357d65f2c3aab4f502107408d5c8:/modules/Command.pm diff --git a/modules/Command.pm b/modules/Command.pm index 42da15d..1c5afa0 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -178,9 +178,9 @@ sub exec_show($$) $ftpl->fillin('URL',equal_url(encode_html($config->{'httproot'}),$virt_path->{'html'})); $ftpl->parse_if_block('link',-l $phys_path); - $ftpl->parse_if_block('not_readable',not -r $phys_path); + $ftpl->parse_if_block('readable',-r $phys_path); + $ftpl->parse_if_block('writeable',-w $phys_path); $ftpl->parse_if_block('binary',-B $phys_path); - $ftpl->parse_if_block('readonly',not -w $phys_path); $ftpl->parse_if_block('viewable',(-r $phys_path && -T $phys_path && not $too_large) || -l $phys_path); $ftpl->parse_if_block('editable',(-r $phys_path && -w $phys_path && -T $phys_path && not $too_large) && not -l $phys_path);