summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-27 23:03:31 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-27 23:03:31 +0800
commit026445058b1bf165e88b88fb191be076b52f2088 (patch)
tree5a516e6884440332f9e43cb254f1bdc103dd6806 /mbbsd/mail.c
parent5139198f3682c035d52ab432d6fe55336c847afb (diff)
downloadpttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar
pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.gz
pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.bz2
pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.lz
pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.xz
pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.zst
pttbbs-026445058b1bf165e88b88fb191be076b52f2088.zip
- check send mail permission
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4250 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index c8bef300..4030c6db 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -498,6 +498,9 @@ m_send(void)
// in-site mail
char uident[IDLEN+1];
+ if (!HasUserPerm(PERM_LOGINOK))
+ return DONOTHING;
+
vs_hdr("站內寄信");
usercomplete(msg_uid, uident);
showplans(uident);
@@ -833,6 +836,9 @@ m_forward(int ent, fileheader_t * fhdr, const char *direct)
{
char uid[STRLEN];
+ if (!HasUserPerm(PERM_LOGINOK))
+ return DONOTHING;
+
vs_hdr("轉達信件");
usercomplete(msg_uid, uid);
if (uid[0] == '\0')