mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Refactor requires login logic, reduce duplicate code
This also corrects the positioning in the chain of the check and removes misuse of prepend_before_action
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class DraftController < ApplicationController
|
||||
prepend_before_action :ensure_logged_in
|
||||
requires_login
|
||||
|
||||
skip_before_action :check_xhr, :preload_json
|
||||
|
||||
def show
|
||||
|
||||
Reference in New Issue
Block a user