From 3b77b08312028151e22bbecb8cfda713de3b13ac Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 28 Oct 2005 07:46:17 +0000 Subject: only PERM_ACCOUNTS could SetUser git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3236 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mbbsd/talk.c') 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; } -- cgit v1.2.3