메뉴 건너뛰기

조회 수 4435 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
로그인 하지 않고 회원 전용 글을 읽으려하면,
"권한이 없습니다.", 로그인 버튼이 나오는 부분이 있는가 하면,
Alert으로 "권한이 없습니다."만 딸랑 나오는 경우도 있어서 일관성이 없어보일때가 있습니다.

여기 팁이나 질문 답변에 아무리 찾아봐도 없길래 올려봅니다.

modules/board/board.view.php
에서

142번째 줄에 보시면
if(!$this->grant->view && !$oDocument->isGranted()) {
   $oDocument = null;
  $oDocument = $oDocumentModel->getDocument(0);
 
  Context::set('document_srl','',true);
 
   $this->alertMessage('msg_not_permitted');



요렇게 있습니다만, 맨 아래 코드를 주석처리하시고

 if(!$this->grant->view && !$oDocument->isGranted()) {
                        $oDocument = null;
                        $oDocument = $oDocumentModel->getDocument(0);
 
                        Context::set('document_srl','',true);
 
//                        $this->alertMessage('msg_not_permitted');
                        return $this->dispBoardMessage('msg_not_permitted');



요렇게 바꾸시면 됩니다.


위 코드 세줄은 별 필요 없어보입니다만, 지우셔도 되고 그냥 두셔도 될듯 합니다.


  1. 조회수 클릭시마다 올라가게 하기 위해서

    Date2017.04.07 Views3913
    Read More
  2. MySQL server has gone away 에러문제 해결

    Date2016.09.01 Views4500
    Read More
  3. 방명록에서 확장변수를 검사(필수여부, 내용 형식) 하지 못하는 현상

    Date2016.08.30 Views4271
    Read More
  4. 추천,비추천시 추천자의 포인트 고정 또는 감소 시키는 방법

    Date2016.08.30 Views4142
    Read More
  5. "권한이 없습니다." Alert 창 대신 로그인 화면으로 이동시키기

    Date2016.08.29 Views4435
    Read More
Board Pagination Prev 1 Next
/ 1

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved