diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-23 00:46:07 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-23 00:46:07 +0800 |
commit | 5cb3fc8c27e59770d4d75d6b1169fd28cd303fd4 (patch) | |
tree | f990be659446dbbb12b4c40007e2c1df5e1646a3 /mbbsd/cache.c | |
parent | cebbd253fddf7461279df3553fa9d28fd94b5ff2 (diff) | |
download | pttbbs-5cb3fc8c27e59770d4d75d6b1169fd28cd303fd4.tar pttbbs-5cb3fc8c27e59770d4d75d6b1169fd28cd303fd4.tar.gz pttbbs-5cb3fc8c27e59770d4d75d6b1169fd28cd303fd4.tar.bz2 pttbbs-5cb3fc8c27e59770d4d75d6b1169fd28cd303fd4.tar.lz pttbbs-5cb3fc8c27e59770d4d75d6b1169fd28cd303fd4.tar.xz pttbbs-5cb3fc8c27e59770d4d75d6b1169fd28cd303fd4.tar.zst pttbbs-5cb3fc8c27e59770d4d75d6b1169fd28cd303fd4.zip |
- prevent 'title' prompt in editing board_note
- allow sysop to always have post permission (found in cross post error)
- both reported by daiYuTsung@ptt2
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4236 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r-- | mbbsd/cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 2a046969..90339547 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -796,6 +796,9 @@ postperm_msg(const char *bname) char buf[PATHLEN]; boardheader_t *bp = NULL; + if (HasUserPerm(PERM_SYSOP)) + return NULL; + setbfile(buf, bname, fn_water); if (belong(buf, cuser.userid)) return "使用者水桶中"; |