fix GEONODE_SECURITY_ENABLED in layer upload