summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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] ||