diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-11-07 21:53:49 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2013-11-07 21:53:49 +0800 |
commit | e51022ad8e1d967268e3305ad0ba040d023d36ac (patch) | |
tree | 9c233e5b2f53bd913f84aebe40fe727b24bf39fe | |
parent | f2199d39b4d2d14d5c6a2816dc2998759dc994db (diff) | |
download | pttbbs-e51022ad8e1d967268e3305ad0ba040d023d36ac.tar pttbbs-e51022ad8e1d967268e3305ad0ba040d023d36ac.tar.gz pttbbs-e51022ad8e1d967268e3305ad0ba040d023d36ac.tar.bz2 pttbbs-e51022ad8e1d967268e3305ad0ba040d023d36ac.tar.lz pttbbs-e51022ad8e1d967268e3305ad0ba040d023d36ac.tar.xz pttbbs-e51022ad8e1d967268e3305ad0ba040d023d36ac.tar.zst pttbbs-e51022ad8e1d967268e3305ad0ba040d023d36ac.zip |
Allow groupop and syssupersubop to enter recycle bin.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5897 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 97683560..ea48467d 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -3846,7 +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)) + if (!((currmode & MODE_BOARD) || GROUPOP() || + HasUserPerm(PERM_SYSSUPERSUBOP))) return DONOTHING; if (!fhdr || !fhdr->filename[0]) { |