diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-11-08 22:06:38 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-11-08 22:06:38 +0800 |
commit | 91b06687e517d98008041ae2fe15a0a4c1ba3ad3 (patch) | |
tree | 68fd76aed0b60d84725e7f18a54dfc911d8028c1 | |
parent | df645de15d09bc0452c3d29bdb32d2d408e31f3d (diff) | |
download | pttbbs-91b06687e517d98008041ae2fe15a0a4c1ba3ad3.tar pttbbs-91b06687e517d98008041ae2fe15a0a4c1ba3ad3.tar.gz pttbbs-91b06687e517d98008041ae2fe15a0a4c1ba3ad3.tar.bz2 pttbbs-91b06687e517d98008041ae2fe15a0a4c1ba3ad3.tar.lz pttbbs-91b06687e517d98008041ae2fe15a0a4c1ba3ad3.tar.xz pttbbs-91b06687e517d98008041ae2fe15a0a4c1ba3ad3.tar.zst pttbbs-91b06687e517d98008041ae2fe15a0a4c1ba3ad3.zip |
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
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 4 |
1 files 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]) { |