summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-05-03 13:59:45 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-05-03 13:59:45 +0800
commitbb3f67a2bbf8b22ea89f2a629a86ee4e6f9d34a4 (patch)
treecb36070fa4bb0450addec36241e4a38c56caac0d
parent8fd2d039d1dd93b6d93515c1f7c0bbcb1b6ef043 (diff)
downloadpttbbs-bb3f67a2bbf8b22ea89f2a629a86ee4e6f9d34a4.tar
pttbbs-bb3f67a2bbf8b22ea89f2a629a86ee4e6f9d34a4.tar.gz
pttbbs-bb3f67a2bbf8b22ea89f2a629a86ee4e6f9d34a4.tar.bz2
pttbbs-bb3f67a2bbf8b22ea89f2a629a86ee4e6f9d34a4.tar.lz
pttbbs-bb3f67a2bbf8b22ea89f2a629a86ee4e6f9d34a4.tar.xz
pttbbs-bb3f67a2bbf8b22ea89f2a629a86ee4e6f9d34a4.tar.zst
pttbbs-bb3f67a2bbf8b22ea89f2a629a86ee4e6f9d34a4.zip
* reject user who haven't pass registration to get BM permission
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5042 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/cache.c b/pttbbs/mbbsd/cache.c
index 42bef4fc..41cb0859 100644
--- a/pttbbs/mbbsd/cache.c
+++ b/pttbbs/mbbsd/cache.c
@@ -152,6 +152,9 @@ int is_BM_cache(int bid) /* bid starts from 1 */
// quick check
if (!HasUserPerm(PERM_BASIC) || !currutmp->uid || currutmp->uid == -1)
return 0;
+ // reject user who haven't complete registration.
+ if (!HasUserPerm(PERM_LOGINOK))
+ return 0;
// XXX hard coded MAX_BMs=4
if( currutmp->uid == pbm[0] ||
currutmp->uid == pbm[1] ||