FIX: localize everyone group name in default category permissions
This commit is contained in:
parent
201cf84eed
commit
74b812593c
|
@ -29,7 +29,7 @@ class CategorySerializer < BasicCategorySerializer
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
if perms.length == 0 && !object.read_restricted
|
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
|
end
|
||||||
perms
|
perms
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue