summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-23 22:37:18 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-23 22:37:18 +0800
commit46318e907721f11256d245d42cd8e841e8765057 (patch)
tree18375c30f7d613818464343013f3046081586266 /mbbsd
parente84a29034ca2aaeedce5f2cd84e68264fb9a3b46 (diff)
downloadpttbbs-46318e907721f11256d245d42cd8e841e8765057.tar
pttbbs-46318e907721f11256d245d42cd8e841e8765057.tar.gz
pttbbs-46318e907721f11256d245d42cd8e841e8765057.tar.bz2
pttbbs-46318e907721f11256d245d42cd8e841e8765057.tar.lz
pttbbs-46318e907721f11256d245d42cd8e841e8765057.tar.xz
pttbbs-46318e907721f11256d245d42cd8e841e8765057.tar.zst
pttbbs-46318e907721f11256d245d42cd8e841e8765057.zip
1. fix 1 make error
2. add perm_nocitizen 3. add no reply for FILE_SOLVE git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2210 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/announce.c2
-rw-r--r--mbbsd/bbs.c8
-rw-r--r--mbbsd/board.c2
-rw-r--r--mbbsd/var.c2
-rw-r--r--mbbsd/voteboard.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index e214963e..d837ba98 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -1077,7 +1077,7 @@ Announce()
{
setutmpmode(ANNOUNCE);
a_menu(mytitle, "man",
- ((HAS_PERM(PERM_SYSOP) || HAS_PERM(PERM_ANNOUNCE)) ? SYSOP :
+ ((HAS_PERM(PERM_SYSOP) ) ? SYSOP :
NOBODY));
return 0;
}
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index b98070d5..fd9e9d08 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -127,7 +127,8 @@ set_board(void)
/* init basic perm, but post perm is checked on demand */
currmode = (currmode & (MODE_DIRTY | MODE_GROUPOP)) | MODE_STARTED;
- if (HAS_PERM(PERM_ALLBOARD) || is_BM_cache(currbid)) {
+ if (!HAS_PERM(PERM_NOCITIZEN) &&
+ (HAS_PERM(PERM_ALLBOARD) || is_BM_cache(currbid))) {
currmode = currmode | MODE_BOARD | MODE_POST | MODE_POSTCHECKED;
}
}
@@ -886,9 +887,8 @@ do_reply(fileheader_t * fhdr)
static int
reply_post(int ent, fileheader_t * fhdr, char *direct)
{
- if (!CheckPostPerm())
+ if (!CheckPostPerm() || (fhdr->filemode &FILE_SOLVED))
return DONOTHING;
-
setdirpath(quote_file, direct, fhdr->filename);
do_reply(fhdr);
*quote_file = 0;
@@ -1293,7 +1293,7 @@ edit_title(int ent, fileheader_t * fhdr, char *direct)
static int
solve_post(int ent, fileheader_t * fhdr, char *direct)
{
- if (HAS_PERM(PERM_SYSOP)) {
+ if (HAS_PERM(PERM_SYSOP) || (currmode & MODE_BOARD)) {
fhdr->filemode ^= FILE_SOLVED;
substitute_ref_record(direct, fhdr, ent);
return PART_REDRAW;
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 8dd2dd83..5834375b 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -581,7 +581,7 @@ static char * const choosebrdhelp[] = {
static void
set_menu_BM(char *BM)
{
- if (HAS_PERM(PERM_ALLBOARD) || is_BM(BM)) {
+ if (!HAS_PERM(PERM_NOCITIZEN) && (HAS_PERM(PERM_ALLBOARD) || is_BM(BM))) {
currmode |= MODE_GROUPOP;
cuser.userlevel |= PERM_SYSSUBOP;
}
diff --git a/mbbsd/var.c b/mbbsd/var.c
index 8bcd145c..b3a0be6f 100644
--- a/mbbsd/var.c
+++ b/mbbsd/var.c
@@ -29,7 +29,7 @@ char * const str_permid[] = {
"不允許\認證碼註冊", /* PERM_NOREGCODE */
"視覺站長", /* PERM_VIEWSYSOP */
"觀察使用者行蹤", /* PERM_LOGUSER */
- "精華區總整理權", /* PERM_Announce */
+ "禠奪公權", /* PERM_NOCITIZEN */
"公關組", /* PERM_RELATION */
"特務組", /* PERM_SMG */
"程式組", /* PERM_PRG */
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c
index ccbe1ef4..341f6911 100644
--- a/mbbsd/voteboard.c
+++ b/mbbsd/voteboard.c
@@ -20,7 +20,7 @@ do_voteboardreply(fileheader_t * fhdr)
clear();
- if (!CheckPostPerm()) {
+ if (!CheckPostPerm()||HAS_PERM(PERM_NOCITIZEN)) {
move(5, 10);
vmsg("對不起,您目前無法在此發表文章!");
return;