Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX 제안] 글쓰기 권한이 없을 경우 로그인으로.. #853

Closed
socialskyo opened this issue Jun 20, 2017 · 4 comments
Closed

[UX 제안] 글쓰기 권한이 없을 경우 로그인으로.. #853

socialskyo opened this issue Jun 20, 2017 · 4 comments
Labels

Comments

@socialskyo
Copy link

권한이 없습니다 라고 딱 나오고 끝나는게 아니라 로그인 창으로 이동까지 하면 좋을 듯 하여 제안 해봅니다. 아래는 관련 팁인데..xe용 입니다...

modules/board/board_view.php
/**
* @brief the method for displaying the warning messages
* display an error message if it has not a special design

    function alertMessage($message) {
        $script =  sprintf('<script> jQuery(function(){ alert("%s"); } );</script>', Context::getLang($message));
        Context::addHtmlFooter( $script );
    }  **/

// 원래의 코드는 위처럼 주석처리후 아래와 같이 삽입
function alertMessage($message) {
if($message=="msg_not_permitted") {
$script = sprintf('<script type="text/javascript"> jQuery(function(){ location.href="/?act=dispMemberLoginForm"; } );</script>');
}
else
{
$script = sprintf('<script type="text/javascript"> jQuery(function(){ alert("%s"); } );</script>', Context::getLang($message));
}
Context::addHtmlFooter( $script );
}

@bjrambo
Copy link
Member

bjrambo commented Jun 20, 2017

권한이 로그인되어있는데 없을수도 있고 로그인이 안되어있는 상황이라 없는걸수도 있고.. 다양한 조건이 잇다고 생각되어서..

@socialskyo
Copy link
Author

@bjrambo 그건 그런데 실상에서 생각해보면 로그인이 안되는건 또 다른 문제라서...

차라리 운영자에게 로그인이 풀려요 라고 오는게 더 빠른 피드백이기도 하고..

아무튼 로그인으로 가는것 그자체는 나쁘진 않은것 같아요

@realgood253
Copy link

'권한이 없습니다' 관련 이슈는 통합(?)하는게 어떨까싶어서.. (이슈를 줄이고싶...)
#95 #626

추가로 제가 타운에 질문했던 링크도 슬쩍...
https://www.xetown.com/qna/303186

@kijin
Copy link
Member

kijin commented Jun 25, 2017

중복 #95 #626

@kijin kijin added the duplicate 중복 label Jun 25, 2017
@kijin kijin closed this as completed Jun 25, 2017
kijin added a commit that referenced this issue Dec 19, 2022
…mitted and the user is not logged in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants