댓글달린 코멘트 수정버튼이 다른회원에게 보입니다. 정보
댓글달린 코멘트 수정버튼이 다른회원에게 보입니다.본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
댓글달린 코멘트 수정을 위해서 아래처럼 하였습니다.
$list[$i-1][is_edit] = true; 이렇게 바꾸고
그리고
/bbs/write_comment_update.php 307번째줄
if ($row[cnt] && !$is_admin)
alert("이 코멘트와 관련된 답변코멘트가 존재하므로 수정 할 수 없습니다.");
이부분은 주석으로 막았습니다.
그런데 작성자가 아닌 회원들도 수정버튼이 나옵니다.
댓글의 작성자만 수정버튼이 나오게 하려면 어느곳을 수정해야하는지 알려주시면 감사하겠습니다.
오류 주소 :
댓글달린 코멘트 수정을 위해서 아래처럼 하였습니다.
$list[$i-1][is_edit] = true; 이렇게 바꾸고
그리고
/bbs/write_comment_update.php 307번째줄
if ($row[cnt] && !$is_admin)
alert("이 코멘트와 관련된 답변코멘트가 존재하므로 수정 할 수 없습니다.");
이부분은 주석으로 막았습니다.
그런데 작성자가 아닌 회원들도 수정버튼이 나옵니다.
댓글의 작성자만 수정버튼이 나오게 하려면 어느곳을 수정해야하는지 알려주시면 감사하겠습니다.
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '280659' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php