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/board.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/board.c')
-rw-r--r-- | mbbsd/board.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index bf5867d9..01a529cb 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -880,7 +880,8 @@ choose_board(int newflag) brdnum = -1; break; case 'D': - if (HasUserPerm(PERM_SYSOP)) { + if (HasUserPerm(PERM_SYSOP) || + (HasUserPerm(PERM_SYSSUPERSUBOP) && GROUPOP())) { ptr = &nbrd[num]; if (ptr->myattr & NBRD_SYMBOLIC) { if (getans("½T©w§R°£³sµ²¡H[N/y]") == 'y') @@ -912,7 +913,8 @@ choose_board(int newflag) brdnum = -1; break; case 'L': - if (HasUserPerm(PERM_SYSOP) && IN_CLASS()) { + if ((HasUserPerm(PERM_SYSOP) || + (HasUserPerm(PERM_SYSSUPERSUBOP) && GROUPOP())) && IN_CLASS()) { if (make_symbolic_link_interactively(class_bid) < 0) break; brdnum = -1; |