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 | |
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
-rw-r--r-- | mbbsd/bbs.c | 2 | ||||
-rw-r--r-- | mbbsd/cache.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 8ff14cfe..f99ea0a8 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -3586,7 +3586,7 @@ b_note_edit_bname(int bid) boardheader_t *fh = getbcache(bid); assert(0<=bid-1 && bid-1<MAX_BOARD); setbfile(buf, fh->brdname, fn_notes); - aborted = vedit(buf, NA, NULL); + aborted = vedit2(buf, NA, NULL, 0); if (aborted == -1) { clear(); outs(msg_cancel); 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 "使用者水桶中"; |