changeset 648:8ec02e0fd1d5

Allow gethandout even if blog is in frozen mode.
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 08 May 2020 17:43:09 +0900
parents a8a5e6437f1a
children 535d961e71c1
files s4-blog.sh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Fri May 08 17:08:49 2020 +0900
+++ b/s4-blog.sh	Fri May 08 17:43:09 2020 +0900
@@ -200,9 +200,9 @@
 	href2="<a href=\"?lshandout+$rowid\" accesskey=\"l\" title=\"L\"> 提出状況 </a>"
 	;;
     esac
-    if $isgrpadmin || $isowner; then
+    ### if $isgrpadmin || $isowner; then
       href3="(<a href=\"?gethandout+$rowid\" accesskey=\"f\" title=\"F\">ファイル取得</a>)"
-    fi
+    ### fi
   fi
   href4='<a href="#bottom" accesskey="b" title="B"> 末尾へ</a>'
   $isgrpadmin &&
@@ -230,7 +230,7 @@
   if test -s $midfile && IFS='|' read edit ctime hexhead blogtype < $midfile
   then
     cat<<-EOF
-	<tr><td>${edit:+$href }$ctime $blogtype $href2$href3 $href4 $href5</td></tr>
+	<tr><td>${edit:+$href }$ctime $blogtype $href2${edit:+$href3} $href4 $href5</td></tr>
 	<tr class="preface${frozen_class:+ }$frozen_class">
 	 <td>`echo "$hexhead"|unhexize|htmlescape|hreflink|minitbl`</td></tr>
 	</table>

yatex.org