Fixed issue #1424 - Method lookup in wrong class namespace.
This commit is contained in:
parent
5fd008c439
commit
ed0f5690bc
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ returns
|
||||||
|
|
||||||
attributes['permissions'] = []
|
attributes['permissions'] = []
|
||||||
permissions_with_child_ids.each do |permission_id|
|
permissions_with_child_ids.each do |permission_id|
|
||||||
permission = Permission.lookup(id: permission_id)
|
permission = ::Permission.lookup(id: permission_id)
|
||||||
next if !permission
|
next if !permission
|
||||||
attributes['permissions'].push permission.name
|
attributes['permissions'].push permission.name
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue