mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix 99d16d84c3
This commit is contained in:
parent
99d16d84c3
commit
582024daf4
4 changed files with 27 additions and 37 deletions
|
|
@ -246,7 +246,12 @@ class documentItem extends BaseObject
|
|||
|
||||
if ($strict)
|
||||
{
|
||||
$grant = ModuleModel::getGrant(ModuleModel::getModuleInfoByModuleSrl($this->get('module_srl')), Context::get('logged_info'));
|
||||
$module_info = ModuleModel::getModuleInfoByModuleSrl($this->get('module_srl'));
|
||||
if (!$module_info)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$grant = ModuleModel::getGrant($module_info, Context::get('logged_info'));
|
||||
if (isset($grant->list) && isset($grant->view) && ($grant->list !== true || $grant->view !== true))
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue