GeoNode/geonode — pull request #79 by jj0hns0n (2011-12-08 18:54:31+00:00)
Title: Enforce security for maps.change_map in mapJSON view

Enforce the existing maps.change_map security in the mapJSON view. It is not currently handled for which allows anyone to modify any map.

For now the view returns a 403 status code which is not really handled for that well in the Map Composer.

https://skitch.com/ortelius/gq4n3/map-viewer-geonode-44
https://skitch.com/ortelius/gq4nh/map-viewer-geonode-46

403 was chosen over 401 because 401 causes a login dialog to appear in the MapComposer even if the user is already logged in.

403 should be handled for better in the MapComposer eventually.