From ed0f5690bc0bb9256fc39f904f90ea793684db8b Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 15 Sep 2017 10:20:21 +0200 Subject: [PATCH] Fixed issue #1424 - Method lookup in wrong class namespace. --- app/models/user/search_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user/search_index.rb b/app/models/user/search_index.rb index 1c39d8f9d..745a10314 100644 --- a/app/models/user/search_index.rb +++ b/app/models/user/search_index.rb @@ -21,7 +21,7 @@ returns attributes['permissions'] = [] permissions_with_child_ids.each do |permission_id| - permission = Permission.lookup(id: permission_id) + permission = ::Permission.lookup(id: permission_id) next if !permission attributes['permissions'].push permission.name end