FIX: localize everyone group name in default category permissions

This commit is contained in:
Régis Hanol 2018-04-19 11:14:18 +02:00
parent 201cf84eed
commit 74b812593c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class CategorySerializer < BasicCategorySerializer
}
end
if perms.length == 0 && !object.read_restricted
perms << { permission_type: CategoryGroup.permission_types[:full], group_name: :everyone }
perms << { permission_type: CategoryGroup.permission_types[:full], group_name: Group[:everyone]&.name.presence || :everyone }
end
perms
end