Skip to content

Commit aa01147

Browse files
authored
Merge pull request #2773 from DMPRoadmap/development
Pulling in final bug fix for v3.0.1
2 parents 4c3e879 + b86c2bc commit aa01147

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

app/controllers/orgs_controller.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ def admin_update
9696
# This action is used by installations that have the following config enabled:
9797
# Rails.configuration.x.shibboleth.use_filtered_discovery_service
9898
def shibboleth_ds
99-
redirect_to root_path unless current_user.nil?
99+
unless current_user.nil?
100+
redirect_to root_path
101+
return
102+
end
100103

101104
@user = User.new
102105
# Display the custom Shibboleth discovery service page.
@@ -106,12 +109,13 @@ def shibboleth_ds
106109

107110
# Disabling the rubocop check here because it would not be clear what happens
108111
# if the ``@orgs` array has items ... it renders the shibboleth_ds view
109-
# rubocop:disable Style/GuardClause
112+
# rubocop:disable Style/GuardClause, Style/RedundantReturn
110113
if @orgs.empty?
111114
flash.now[:alert] = _("No organisations are currently registered.")
112115
redirect_to user_shibboleth_omniauth_authorize_path
116+
return
113117
end
114-
# rubocop:enable Style/GuardClause
118+
# rubocop:enable Style/GuardClause, Style/RedundantReturn
115119
end
116120

117121
# This action is used to redirect a user to the Shibboleth IdP

app/controllers/super_admin/themes_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def destroy
5151
redirect_to super_admin_themes_path, notice: msg
5252
else
5353
flash.now[:alert] = failure_message(@theme, _("delete"))
54-
redner :edit
54+
render :edit
5555
end
5656
end
5757

0 commit comments

Comments
 (0)