mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 06:48:18 +08: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:
@ -2,7 +2,7 @@ require_dependency 'notification_serializer'
|
||||
|
||||
class NotificationsController < ApplicationController
|
||||
|
||||
prepend_before_action :check_xhr, :ensure_logged_in
|
||||
requires_login
|
||||
|
||||
def index
|
||||
user =
|
||||
|
Reference in New Issue
Block a user