access restrictions can be set to public to make them available to everyone (even not logged in users)
public access restrictions do not count to the unlocked areas count
This commit is contained in:
parent
8a3d3bc18f
commit
1d4703f86f
4 changed files with 53 additions and 18 deletions
|
@ -308,7 +308,7 @@ def create_editor_form(editor_model):
|
|||
'level_change_description', 'base_mapdata_accessible', 'can_report_missing',
|
||||
'label_settings', 'label_override', 'min_zoom', 'max_zoom', 'font_size',
|
||||
'allow_levels', 'allow_spaces', 'allow_areas', 'allow_pois', 'allow_dynamic_locations',
|
||||
'left', 'top', 'right', 'bottom']
|
||||
'left', 'top', 'right', 'bottom', 'public']
|
||||
field_names = [field.name for field in editor_model._meta.get_fields() if not field.one_to_many]
|
||||
existing_fields = [name for name in possible_fields if name in field_names]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue