Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/invites_controller.rb')
-rw-r--r--app/controllers/invites_controller.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb
index 2a7f2d42e2a..8a8ae38c6f3 100644
--- a/app/controllers/invites_controller.rb
+++ b/app/controllers/invites_controller.rb
@@ -13,7 +13,7 @@ class InvitesController < ApplicationController
respond_to :html
- feature_category :authentication_and_authorization
+ feature_category :system_access
def show
accept if skip_invitation_prompt?
@@ -83,7 +83,7 @@ class InvitesController < ApplicationController
def authenticate_user!
return if current_user
- store_location_for(:user, invite_landing_url) if member
+ store_location_for(:user, invite_details[:path]) if member
if user_sign_up?
set_session_invite_params
@@ -120,10 +120,6 @@ class InvitesController < ApplicationController
end
end
- def invite_landing_url
- root_url + invite_details[:path]
- end
-
def invite_details
@invite_details ||= case member.source
when Project