mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
merge from 1.5.3 (~r10951). required minify admin.min.js
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10952 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
commit
d97822999e
34 changed files with 233 additions and 127 deletions
|
|
@ -61,12 +61,10 @@
|
|||
{
|
||||
$this->add('redirect_url', $url);
|
||||
}
|
||||
else
|
||||
|
||||
if($output !== NULL && is_object($output))
|
||||
{
|
||||
if($output !== NULL && is_object($output))
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -153,7 +151,7 @@
|
|||
$oModuleModel = &getModel('module');
|
||||
// permission settings. access, manager(== is_admin) are fixed and privilege name in XE
|
||||
$module_srl = Context::get('module_srl');
|
||||
if(!$module_info->mid && preg_match('/^([0-9]+)$/',$module_srl)) {
|
||||
if(!$module_info->mid && !is_array($module_srl) && preg_match('/^([0-9]+)$/',$module_srl)) {
|
||||
$request_module = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
if($request_module->module_srl == $module_srl) {
|
||||
$grant = $oModuleModel->getGrant($request_module, $logged_info);
|
||||
|
|
@ -175,13 +173,15 @@
|
|||
// Check permissions
|
||||
switch($permission_target) {
|
||||
case 'root' :
|
||||
$this->stop('msg_not_permitted_act');
|
||||
break;
|
||||
case 'manager' :
|
||||
if(!$grant->manager) $this->stop('msg_not_permitted_act');
|
||||
break;
|
||||
case 'manager' :
|
||||
$this->stop('msg_not_permitted_act');
|
||||
return;
|
||||
case 'member' :
|
||||
if(!$is_logged) $this->stop('msg_not_permitted_act');
|
||||
if(!$is_logged)
|
||||
{
|
||||
$this->stop('msg_not_permitted_act');
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -335,7 +335,8 @@
|
|||
if(isset($this->xml_info->action->{$this->act}) && method_exists($this, $this->act)) {
|
||||
// Check permissions
|
||||
if($this->module_srl && !$this->grant->access){
|
||||
return $this->stop("msg_not_permitted_act");
|
||||
$this->stop("msg_not_permitted_act");
|
||||
return FALSE;
|
||||
}
|
||||
// integrate skin information of the module(change to sync skin info with the target module only by seperating its table)
|
||||
$oModuleModel = &getModel('module');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue