diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-28 10:44:43 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-28 10:44:43 +0800 |
commit | dad13c35b2853f053afe41a35036a65f0a0b9289 (patch) | |
tree | d85cd608717749837205285fc9a358ba9a4cd64f /mbbsd/user.c | |
parent | c65ed0d55a3c912a7efa9c27b974cbc66a5d7eb2 (diff) | |
download | pttbbs-dad13c35b2853f053afe41a35036a65f0a0b9289.tar pttbbs-dad13c35b2853f053afe41a35036a65f0a0b9289.tar.gz pttbbs-dad13c35b2853f053afe41a35036a65f0a0b9289.tar.bz2 pttbbs-dad13c35b2853f053afe41a35036a65f0a0b9289.tar.lz pttbbs-dad13c35b2853f053afe41a35036a65f0a0b9289.tar.xz pttbbs-dad13c35b2853f053afe41a35036a65f0a0b9289.tar.zst pttbbs-dad13c35b2853f053afe41a35036a65f0a0b9289.zip |
fix permission when changing user's password or email
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2871 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 61d6c976..e8d3ee56 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -824,8 +824,6 @@ uinfo_query(userec_t *u, int adminmode, int unum) } buf[8] = '\0'; strncpy(x.passwd, genpasswd(buf), PASSLEN); - if (adminmode) - x.userlevel &= (~PERM_LOGINOK); break; case '3': @@ -884,7 +882,7 @@ uinfo_query(userec_t *u, int adminmode, int unum) setuserid(unum, x.userid); } if (mail_changed) { - x.userlevel &= ~PERM_LOGINOK; + x.userlevel &= ~(PERM_LOGINOK|PERM_POST); email_justify(x); } memcpy(u, &x, sizeof(x)); |