diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 6a9033f9..54ffc8bf 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -1107,6 +1107,12 @@ class DataController extends Zend_Controller_Action $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); + if(empty(view::User('id'))) + { + $this->jsonexit(array("error"=>'please login first')); + return true; + } + $uuid = $this->_getParam("uuid"); $basin = $this->getParam("basin"); $mountain = $this->getParam("mountain"); diff --git a/application/default/views/scripts/glacier/view-glacier-selection.phtml b/application/default/views/scripts/glacier/view-glacier-selection.phtml index ae3d21c4..e5f5580f 100644 --- a/application/default/views/scripts/glacier/view-glacier-selection.phtml +++ b/application/default/views/scripts/glacier/view-glacier-selection.phtml @@ -173,7 +173,7 @@