mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
init project
This commit is contained in:
8
app/controllers/users/base_account_controller.rb
Normal file
8
app/controllers/users/base_account_controller.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Users::BaseAccountController < Users::BaseController
|
||||
before_action :require_login
|
||||
|
||||
def observed_user
|
||||
@_observed_user ||= (User.find_by_id(params[:account_id]) || User.find_by_login(params[:account_id]))
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user