summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-07-09 09:47:20 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-07-09 09:47:20 +0800
commitab2e7479edcaa79b632fa5ac3f1f0ae95cd28950 (patch)
tree78a141f4695e241414c24fe61fa9b15159d028b3 /mbbsd
parent7f32b9567392845007d1c5352c4653632d2cf4dc (diff)
downloadpttbbs-ab2e7479edcaa79b632fa5ac3f1f0ae95cd28950.tar
pttbbs-ab2e7479edcaa79b632fa5ac3f1f0ae95cd28950.tar.gz
pttbbs-ab2e7479edcaa79b632fa5ac3f1f0ae95cd28950.tar.bz2
pttbbs-ab2e7479edcaa79b632fa5ac3f1f0ae95cd28950.tar.lz
pttbbs-ab2e7479edcaa79b632fa5ac3f1f0ae95cd28950.tar.xz
pttbbs-ab2e7479edcaa79b632fa5ac3f1f0ae95cd28950.tar.zst
pttbbs-ab2e7479edcaa79b632fa5ac3f1f0ae95cd28950.zip
Not permitting edit posts in Security board from pmore.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3549 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/pmore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index d71fd1ee..e5ba2161 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -2178,7 +2178,9 @@ pmore(char *fpath, int promptend)
case 'E':
// admin edit any files other than ve help file
- if (HasUserPerm(PERM_SYSOP) && strcmp(fpath, "etc/ve.hlp")) {
+ // and posts in Security board
+ if (HasUserPerm(PERM_SYSOP) && strcmp(fpath, "etc/ve.hlp") &&
+ strcmp(currboard, "Security")){
mf_detach();
vedit(fpath, NA, NULL);
REENTRANT_RESTORE();