summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-07 17:35:51 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-07 17:35:51 +0800
commit0f0026e4f78819b2d67b1748e0fea384e42f8ae2 (patch)
treefd74a4d44bab16590d0e95648abb51b101847a7d
parent927f17a75a35fc9a074fa75414f86c50e52019ed (diff)
downloadpttbbs-0f0026e4f78819b2d67b1748e0fea384e42f8ae2.tar
pttbbs-0f0026e4f78819b2d67b1748e0fea384e42f8ae2.tar.gz
pttbbs-0f0026e4f78819b2d67b1748e0fea384e42f8ae2.tar.bz2
pttbbs-0f0026e4f78819b2d67b1748e0fea384e42f8ae2.tar.lz
pttbbs-0f0026e4f78819b2d67b1748e0fea384e42f8ae2.tar.xz
pttbbs-0f0026e4f78819b2d67b1748e0fea384e42f8ae2.tar.zst
pttbbs-0f0026e4f78819b2d67b1748e0fea384e42f8ae2.zip
could NOT delete/edit/recommend in MODE_SELECT
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@560 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 0c720dda..cf64faaa 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.72 2002/11/07 09:13:24 in2 Exp $ */
+/* $Id: bbs.c,v 1.73 2002/11/07 09:35:51 in2 Exp $ */
#include "bbs.h"
static void
@@ -713,6 +713,10 @@ edit_post(int ent, fileheader_t * fhdr, char *direct)
if ((!HAS_PERM(PERM_SYSOP)) &&
strcmp(fhdr->owner, cuser.userid))
return DONOTHING;
+
+ if( currmode & MODE_SELECT )
+ return DONOTHING;
+
setutmpmode(REEDIT);
setdirpath(genbuf, direct, fhdr->filename);
local_article = fhdr->filemode & FILE_LOCAL;
@@ -1205,6 +1209,9 @@ recommend(int ent, fileheader_t * fhdr, char *direct)
char buf[200], path[200], yn[5];
boardheader_t *bp;
+ if( currmode & MODE_SELECT )
+ return DONOTHING;
+
bp = getbcache(currbid);
if( bp->brdattr & BRD_NORECOMMEND ){
vmsg("©êºp, ¥»ªO¸T¤î±ÀÂË");
@@ -1355,6 +1362,9 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
int not_owned;
boardheader_t *bp;
+ if( currmode & MODE_SELECT )
+ return DONOTHING;
+
bp = getbcache(currbid);
if (strcmp(bp->brdname, "Security") == 0)
return DONOTHING;