From ab2e7479edcaa79b632fa5ac3f1f0ae95cd28950 Mon Sep 17 00:00:00 2001 From: scw Date: Mon, 9 Jul 2007 01:47:20 +0000 Subject: 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 --- mbbsd/pmore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3