roroacms 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -98,7 +98,7 @@ module Roroacms
|
|
98
98
|
# checks if the admin is logged in before anything else
|
99
99
|
|
100
100
|
def authorize_admin
|
101
|
-
redirect_to admin_login_path
|
101
|
+
redirect_to admin_login_path and return if current_user.nil?
|
102
102
|
end
|
103
103
|
|
104
104
|
|