mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Merge branch 'ent-8501-Error-Metaconsola-y-consolas-visuales' into 'develop'
minor fix See merge request artica/pandorafms!4672
This commit is contained in:
commit
3ef5c57c9e
@ -1112,11 +1112,21 @@ class Item extends CachedModel
|
|||||||
// The layout can be from another node.
|
// The layout can be from another node.
|
||||||
$linkedLayoutNodeId = $linkedVisualConsole['linkedLayoutNodeId'];
|
$linkedLayoutNodeId = $linkedVisualConsole['linkedLayoutNodeId'];
|
||||||
|
|
||||||
// Check ACL.
|
if (empty($linkedLayoutNodeId) === false && \is_metaconsole() === true) {
|
||||||
|
$db_connector = metaconsole_get_connection_by_id($linkedLayoutNodeId);
|
||||||
|
metaconsole_load_external_db($db_connector);
|
||||||
|
}
|
||||||
|
|
||||||
$visualConsole = VC::fromDB(['id' => $vcId]);
|
$visualConsole = VC::fromDB(['id' => $vcId]);
|
||||||
|
|
||||||
|
if (empty($linkedLayoutNodeId) === false && \is_metaconsole() === true) {
|
||||||
|
metaconsole_restore_db();
|
||||||
|
}
|
||||||
|
|
||||||
$visualConsoleData = $visualConsole->toArray();
|
$visualConsoleData = $visualConsole->toArray();
|
||||||
$vcGroupId = $visualConsoleData['groupId'];
|
$vcGroupId = $visualConsoleData['groupId'];
|
||||||
|
|
||||||
|
// Check ACL.
|
||||||
$aclRead = \check_acl($config['id_user'], $vcGroupId, 'VR');
|
$aclRead = \check_acl($config['id_user'], $vcGroupId, 'VR');
|
||||||
// To build the link to another visual console
|
// To build the link to another visual console
|
||||||
// you must have read permissions of the visual console
|
// you must have read permissions of the visual console
|
||||||
|
Loading…
x
Reference in New Issue
Block a user