changeset 924:80048f546db6 draft

Set isgrpadmin when viewing personal blog
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 14 Jan 2021 09:00:53 +0900
parents 0ccec034f847
children 713441f69ab8
files s4-blog.sh
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Thu Jan 14 08:17:30 2021 +0900
+++ b/s4-blog.sh	Thu Jan 14 09:00:53 2021 +0900
@@ -162,6 +162,7 @@
   isgroup "$blogowner" && isgroup=true || isgroup=false
   isgrpadmin=false
   isgrpowner "$user" "$blogowner" && isgrpadmin=true
+  [ x"$user" = x"$blogowner" ] && isgrpadmin=true
 
   # 2015-10-05 check readable
   if ! $iswritable; then

yatex.org