FIX: Protection against dangling category group records
This commit is contained in:
parent
6024fb84cc
commit
fab59c66f0
|
@ -310,8 +310,10 @@ SQL
|
|||
def permissions_params
|
||||
hash = {}
|
||||
category_groups.includes(:group).each do |category_group|
|
||||
if category_group.group.present?
|
||||
hash[category_group.group_name] = category_group.permission_type
|
||||
end
|
||||
end
|
||||
hash
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue