update 2024-05-16 15:19:46
This commit is contained in:
parent
42310f5d44
commit
8f0a6aa0b1
@ -39,7 +39,18 @@ class Permissions
|
||||
|
||||
if (ArrayHelper::check($item->addpermissions))
|
||||
{
|
||||
$item->permissions = array_values($item->addpermissions);
|
||||
if (isset($item->addpermissions["action"]) && is_array($item->addpermissions["action"])
|
||||
&& isset($item->addpermissions["implementation"]) && is_array($item->addpermissions["implementation"]))
|
||||
{
|
||||
foreach ($item->addpermissions["action"] as $k => $action)
|
||||
{
|
||||
$item->permissions[] = ['action' => $action, 'implementation' => $item->addpermissions["implementation"][$k]];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$item->permissions = array_values($item->addpermissions);
|
||||
}
|
||||
}
|
||||
|
||||
unset($item->addpermissions);
|
||||
|
@ -14,7 +14,18 @@
|
||||
|
||||
if (ArrayHelper::check($item->addpermissions))
|
||||
{
|
||||
$item->permissions = array_values($item->addpermissions);
|
||||
if (isset($item->addpermissions["action"]) && is_array($item->addpermissions["action"])
|
||||
&& isset($item->addpermissions["implementation"]) && is_array($item->addpermissions["implementation"]))
|
||||
{
|
||||
foreach ($item->addpermissions["action"] as $k => $action)
|
||||
{
|
||||
$item->permissions[] = ['action' => $action, 'implementation' => $item->addpermissions["implementation"][$k]];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$item->permissions = array_values($item->addpermissions);
|
||||
}
|
||||
}
|
||||
|
||||
unset($item->addpermissions);
|
||||
|
@ -460,7 +460,7 @@ final class AccessSections
|
||||
}
|
||||
}
|
||||
|
||||
$this->permission ->set(
|
||||
$this->permission->set(
|
||||
$custom_admin_view, $customAdminCode, $customAdminCode,
|
||||
$menuControllers, 'customAdmin'
|
||||
);
|
||||
@ -661,7 +661,8 @@ final class AccessSections
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->permission ->set(
|
||||
|
||||
$this->permission->set(
|
||||
$view, $nameView, $nameViews, $menuControllers
|
||||
);
|
||||
}
|
||||
|
@ -420,7 +420,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$this->permission ->set(
|
||||
$this->permission->set(
|
||||
$custom_admin_view, $customAdminCode, $customAdminCode,
|
||||
$menuControllers, 'customAdmin'
|
||||
);
|
||||
@ -621,7 +621,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->permission ->set(
|
||||
|
||||
$this->permission->set(
|
||||
$view, $nameView, $nameViews, $menuControllers
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user