Fixed issue #1424 - Method lookup in wrong class namespace.

This commit is contained in:
Thorsten Eckel 2017-09-15 10:20:21 +02:00
parent 5fd008c439
commit ed0f5690bc

View file

@ -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