diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-10 12:28:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-10 12:28:13 +0200 |
commit | 8514ef723c3e3963567a9d57bd0d71a5091fc802 (patch) | |
tree | dea7d2bc6c079548945495c130d6373218387dda /app/controllers/media_controller.rb | |
parent | 210fa3a94e18f95a264a20046602db9c5e838479 (diff) |
Fix login sometimes redirecting to paths that are not pages (#11019)
Fix #11016
Diffstat (limited to 'app/controllers/media_controller.rb')
-rw-r--r-- | app/controllers/media_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/media_controller.rb b/app/controllers/media_controller.rb index 8e1624ce1..a245db2d1 100644 --- a/app/controllers/media_controller.rb +++ b/app/controllers/media_controller.rb @@ -3,6 +3,8 @@ class MediaController < ApplicationController include Authorization + skip_before_action :store_current_location + before_action :set_media_attachment before_action :verify_permitted_status! |