File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments