roroacms 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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
|
|