From 91b06687e517d98008041ae2fe15a0a4c1ba3ad3 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 8 Nov 2013 14:06:38 +0000 Subject: Restrict SYSSUPERGROUPOP to view time capsule only in his authorized groups. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5900 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index ea48467d..b87dba50 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -3846,8 +3846,8 @@ view_posthistory(int ent GCC_UNUSED, const fileheader_t * fhdr, const char *dire int current_as_base = 1; // TODO allow author? - if (!((currmode & MODE_BOARD) || GROUPOP() || - HasUserPerm(PERM_SYSSUPERSUBOP))) + if (!((currmode & MODE_BOARD) || + (HasUserPerm(PERM_SYSSUPERSUBOP | PERM_SYSSUBOP) && GROUPOP()))) return DONOTHING; if (!fhdr || !fhdr->filename[0]) { -- cgit v1.2.3