Better authentication allowing non user model eg administrator model base

This commit is contained in:
2015-03-04 15:23:01 +01:00
parent b0491aa997
commit aa11f4de80
5 changed files with 15 additions and 9 deletions
@@ -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