correctly check permissions on layers for new map with layers
Merge branch 'master' of https://github.com/GeoNode/geonode
Merge pull request #820 from simod/fix-issue-819

Fix issue #819