Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

[バグ]ログイン状態のURL直打ちで新規登録ページ #281

Open
rkdora opened this issue May 17, 2019 · 1 comment
Open

[バグ]ログイン状態のURL直打ちで新規登録ページ #281

rkdora opened this issue May 17, 2019 · 1 comment

Comments

@rkdora
Copy link
Member

rkdora commented May 17, 2019

ログイン中に、新規登録ページとログインページにアクセス可能な状態

@rkdora
Copy link
Member Author

rkdora commented May 17, 2019

あとでやる

  def authorized
    redirect_to root_path, warning: 'その操作はできません' if logged_in?
  end

をapplication_controllerに追加し、users_controllerにbefore_action: authorized を追加

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant