Skip to content

Commit

Permalink
- Allow unapproved layers to be published on maps
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed May 15, 2018
1 parent 07ebfee commit f444712
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions geonode/maps/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,10 +827,6 @@ def add_layers_to_map_config(
# bad layer, skip
continue

if not layer.is_published:
# invisible layer, skip inclusion
continue

if not request.user.has_perm(
'view_resourcebase',
obj=layer.get_self_resource()):
Expand Down
2 changes: 1 addition & 1 deletion geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
ALLOWED_HOSTS = ast.literal_eval(os.getenv('ALLOWED_HOSTS'))
except ValueError:
# fallback to regular list of values separated with misc chars
ALLOWED_HOSTS = ['localhost', ] if os.getenv('ALLOWED_HOSTS') is None \
ALLOWED_HOSTS = ['localhost', 'django', 'geonode'] if os.getenv('ALLOWED_HOSTS') is None \
else re.split(r' *[,|:|;] *', os.getenv('ALLOWED_HOSTS'))

# AUTH_IP_WHITELIST property limits access to users/groups REST endpoints
Expand Down

0 comments on commit f444712

Please sign in to comment.