diff --git a/modules/planet/planet.admin.controller.php b/modules/planet/planet.admin.controller.php
index 23acf2a5b..2645ce935 100644
--- a/modules/planet/planet.admin.controller.php
+++ b/modules/planet/planet.admin.controller.php
@@ -64,7 +64,7 @@
$config->use_signup = Context::get('use_signup');
if($config->use_signup != 'Y') $config->use_signup = 'N';
- $grant_list = array('access','create','manager');
+ $grant_list = array('access','create','manager','write_document');
foreach($grant_list as $key) {
$tmp = trim(Context::get($key));
if(!$tmp) {
diff --git a/modules/planet/planet.model.php b/modules/planet/planet.model.php
index 418a51913..f11931d00 100644
--- a/modules/planet/planet.model.php
+++ b/modules/planet/planet.model.php
@@ -45,7 +45,8 @@
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y') return true;
$group_list = $logged_info->group_list;
- $group_srls = array_keys($group_list);
+ if(count($group_list)) $group_srls = array_keys($group_list);
+ else return false;
foreach($grant as $srl) if(in_array($srl, $group_srls)) return true;
return false;
diff --git a/modules/planet/planet.view.php b/modules/planet/planet.view.php
index 297698e45..16648c8e4 100644
--- a/modules/planet/planet.view.php
+++ b/modules/planet/planet.view.php
@@ -37,6 +37,9 @@
if($this->planet->isHome() && !in_array($this->act, array('dispPlanetCreate','dispPlanetLogin','dispPlanetTagSearch','dispPlanetContentSearch','dispPlanetContentTagSearch')) ) {
Context::set('act',$this->act = 'dispPlanetHome');
}
+
+ $this->grant->access = $oPlanetModel->isAccessGranted();
+ $this->grant->create = $oPlanetModel->isCreateGranted();
}
/**
@@ -347,6 +350,13 @@
Context::set('reply_list',$output->data);
}
+ function dispPlanetMessage($msg_code) {
+ $msg = Context::getLang($msg_code);
+ if(!$msg) $msg = $msg_code;
+ Context::set('message', $msg);
+ $this->setTemplateFile('message');
+ }
+
}
?>
diff --git a/modules/planet/tpl/filter/insert_config.xml b/modules/planet/tpl/filter/insert_config.xml
index 15b013ce8..bc28ee9d8 100644
--- a/modules/planet/tpl/filter/insert_config.xml
+++ b/modules/planet/tpl/filter/insert_config.xml
@@ -14,6 +14,7 @@
+