summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c
index 626501eb..6d3a857c 100644
--- a/pttbbs/mbbsd/user.c
+++ b/pttbbs/mbbsd/user.c
@@ -1293,7 +1293,8 @@ showplans_userec(userec_t *user)
if(user->userlevel & PERM_VIOLATELAW)
{
- const int can_save = (user->userlevel & PERM_LOGINOK) ? 1 : 0;
+ int can_save = ((user->userlevel & PERM_LOGINOK) &&
+ (user->userlevel & PERM_BASIC)) ? 1 : 0;
prints(" " ANSI_COLOR(1;31) "此人違規 %s" ANSI_RESET,
can_save ? "尚未繳交罰單" : "");