summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-07-13 10:06:11 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-07-13 10:06:11 +0800
commitb23eba7a1d04273813cd80ca4a2305d894578d6a (patch)
tree3aa5e51848fd4e3768ca341feb4613907e44537e
parentbcb832c7cfaf279e38a8aa2760ed9b0bfacb326e (diff)
downloadpttbbs-b23eba7a1d04273813cd80ca4a2305d894578d6a.tar
pttbbs-b23eba7a1d04273813cd80ca4a2305d894578d6a.tar.gz
pttbbs-b23eba7a1d04273813cd80ca4a2305d894578d6a.tar.bz2
pttbbs-b23eba7a1d04273813cd80ca4a2305d894578d6a.tar.lz
pttbbs-b23eba7a1d04273813cd80ca4a2305d894578d6a.tar.xz
pttbbs-b23eba7a1d04273813cd80ca4a2305d894578d6a.tar.zst
pttbbs-b23eba7a1d04273813cd80ca4a2305d894578d6a.zip
* do not allow guest using mail reply (thanks to OutOfHome@ptt)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4737 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/mail.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 396fca87..f64f7269 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -759,6 +759,10 @@ multi_send(const char *title)
static int
multi_reply(int ent, fileheader_t * fhdr, const char *direct)
{
+ // do not allow guest to use this
+ if (!HasUserPerm(PERM_BASIC))
+ return DONOTHING;
+
if (!fhdr || !fhdr->filename[0])
return DONOTHING;
@@ -1297,6 +1301,10 @@ mail_reply(int ent, fileheader_t * fhdr, const char *direct)
int oent = ent;
char save_title[STRLEN];
+ // do not allow guest to use this
+ if (!HasUserPerm(PERM_BASIC))
+ return DONOTHING;
+
if (!fhdr || !fhdr->filename[0])
return DONOTHING;