summaryrefslogtreecommitdiffstats
path: root/mbbsd/read.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-28 15:46:17 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-28 15:46:17 +0800
commit3b77b08312028151e22bbecb8cfda713de3b13ac (patch)
treeb08d7f4dd192516a42a0dc6d3b0d7b9e730079f0 /mbbsd/read.c
parent9ad29a4d9bfb725a12cc7869004b78e0837b5ce9 (diff)
downloadpttbbs-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/read.c')
-rw-r--r--mbbsd/read.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 7e781de5..67f96d00 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -780,7 +780,7 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem,
break;
case Ctrl('S'):
- if (HasUserPerm(PERM_ACCOUNTS) && locmem->crs_ln>0) {
+ if (HasUserPerm(PERM_ACCOUNTS|PERM_SYSOP) && locmem->crs_ln>0) {
int id;
userec_t muser;
@@ -791,7 +791,10 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem,
move(1, 0);
if ((id = getuser(headers[locmem->crs_ln - locmem->top_ln].owner, &muser))) {
user_display(&muser, 1);
- uinfo_query(&muser, 1, id);
+ if( HasUserPerm(PERM_ACCOUNTS) )
+ uinfo_query(&muser, 1, id);
+ else
+ pressanykey();
}
mode = FULLUPDATE;
}