From 15072979376c73f8e8859d246f351ce08e0f075c Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Mon, 11 Mar 2024 11:41:26 +0100 Subject: [PATCH] fix Users resolution in lib/open_project/ui/extensible_tabs.rb It probably goes to lookbook/previews/open_project/users/avatar_component_preview.rb --- lib/open_project/ui/extensible_tabs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_project/ui/extensible_tabs.rb b/lib/open_project/ui/extensible_tabs.rb index 4beec22535dd..94b367ec4a48 100644 --- a/lib/open_project/ui/extensible_tabs.rb +++ b/lib/open_project/ui/extensible_tabs.rb @@ -63,7 +63,7 @@ def core_user_tabs path: ->(params) { edit_user_path(params[:user], tab: :general) }, label: :label_general, only_if: ->(context) { - Users::UpdateContract.new(context[:user], context[:current_user]).allowed_to_update? + ::Users::UpdateContract.new(context[:user], context[:current_user]).allowed_to_update? } }, {