diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-08 22:23:24 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-08 22:23:24 +0800 |
commit | e041c43c8961880cebbc18c1be59bde99582ea2a (patch) | |
tree | e9ae727e9d3e52ffbb524714644d635bcbc44b47 /mbbsd/admin.c | |
parent | 72fa46586658fa5a7e797e66167583b17cb5a858 (diff) | |
download | pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.gz pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.bz2 pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.lz pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.xz pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.tar.zst pttbbs-e041c43c8961880cebbc18c1be59bde99582ea2a.zip |
add super sys support op (群組長)
HUGETLB doesn't need root
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3010 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index eb6b47d1..9a0fd4e0 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -404,7 +404,7 @@ m_mod_board(char *bname) snprintf(genbuf, sizeof(genbuf), "(E)³]©w (V)¹Hªk/¸Ñ°£%s%s [Q]¨ú®ø¡H", HasUserPerm(PERM_SYSOP | PERM_BOARD) ? " (B)Vote (S)±Ï¦^ (C)¦X¨Ö (G)½ä½L¸Ñ¥d" : "", - HasUserPerm(PERM_SYSSUBOP | PERM_BOARD) ? " (D)§R°£" : ""); + HasUserPerm(PERM_SYSSUBOP | PERM_SYSSUPERSUBOP | PERM_BOARD) ? " (D)§R°£" : ""); getdata(10, 0, genbuf, ans, 3, LCECHO); switch (*ans) { @@ -482,7 +482,8 @@ m_mod_board(char *bname) } break; case 'd': - if (!HasUserPerm(PERM_SYSOP | PERM_BOARD)) + if (!(HasUserPerm(PERM_SYSOP | PERM_BOARD) || + (HasUserPerm(PERM_SYSSUPERSUBOP) && GROUPOP()))) break; getdata_str(9, 0, msg_sure_ny, genbuf, 3, LCECHO, "N"); if (genbuf[0] != 'y' || !bname[0]) |