Better authentication allowing non user model eg administrator model base
This commit is contained in:
@@ -6,4 +6,8 @@ private
|
||||
def authorize_cmtool
|
||||
redirect_to new_user_session_path unless current_user.present?
|
||||
end
|
||||
|
||||
def cmtool_user
|
||||
current_user
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user