diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-28 15:46:17 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-28 15:46:17 +0800 |
commit | 3b77b08312028151e22bbecb8cfda713de3b13ac (patch) | |
tree | b08d7f4dd192516a42a0dc6d3b0d7b9e730079f0 /mbbsd/talk.c | |
parent | 9ad29a4d9bfb725a12cc7869004b78e0837b5ce9 (diff) | |
download | pttbbs-3b77b08312028151e22bbecb8cfda713de3b13ac.tar pttbbs-3b77b08312028151e22bbecb8cfda713de3b13ac.tar.gz pttbbs-3b77b08312028151e22bbecb8cfda713de3b13ac.tar.bz2 pttbbs-3b77b08312028151e22bbecb8cfda713de3b13ac.tar.lz pttbbs-3b77b08312028151e22bbecb8cfda713de3b13ac.tar.xz pttbbs-3b77b08312028151e22bbecb8cfda713de3b13ac.tar.zst pttbbs-3b77b08312028151e22bbecb8cfda713de3b13ac.zip |
only PERM_ACCOUNTS could SetUser
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3236 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 8363d156..d6f0dbc6 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2669,7 +2669,7 @@ userlist(void) break; case 'u': /* 線上修改資料 */ - if (HasUserPerm(PERM_ACCOUNTS)) { + if (HasUserPerm(PERM_ACCOUNTS|PERM_SYSOP)) { int id; userec_t muser; strlcpy(currauthor, uentp->userid, sizeof(currauthor)); @@ -2677,7 +2677,10 @@ userlist(void) move(1, 0); if ((id = getuser(uentp->userid, &muser)) > 0) { user_display(&muser, 1); - uinfo_query(&muser, 1, id); + if( HasUserPerm(PERM_ACCOUNTS) ) + uinfo_query(&muser, 1, id); + else + pressanykey(); } redrawall = redraw = 1; } @@ -2716,7 +2719,7 @@ userlist(void) } break; case 'K': - if (HasUserPerm(PERM_ACCOUNTS)) { + if (HasUserPerm(PERM_ACCOUNTS|PERM_SYSOP)) { my_kick(uentp); redrawall = redraw = 1; } |