Version 4.1.2
This commit is contained in:
1 parent
3ba79295ee
commit
28bd025b35
1131 files changed
+63658
-20579
No files matched your search
@@ -37,7 +37,7 @@ class _Node extends FormAbstract
|
||||
'subnodes' => TRUE, // Controls if subnodes should be included. Defaults to TRUE
|
||||
'togglePerm' => 'edit', // If a permission key is provided, nodes that have this permission will toggle the element IDs in toggleIds on/off
|
||||
'toggleIds' => array(), // Element IDs to toggle on/off when togglePerm is reached
|
||||
'forceOwner' => \IPS\Member::load(), // If nodes are 'owned' you can force a specific owner
|
||||
'forceOwner' => \IPS\Member::load(), // If nodes are 'owned', the owner. NULL for currently logged in member, FALSE to not limit by owner
|
||||
'where' => array(), // where clause to control which results to display
|
||||
'disabledIds' => array(), // Array of disabled IDs
|
||||
'noParentNodes' => 'Custom' // If a value is provided, subnodes of this class which have no parent node will be added into a pseudo-group with the title provided. e.g. custom packages in Nexus do not belong to any package group
|
||||
@@ -154,7 +154,7 @@ class _Node extends FormAbstract
|
||||
$nodes = array();
|
||||
$children = array();
|
||||
$noParentNodes = array();
|
||||
if( isset( $nodeClass::$ownerTypes ) and $nodeClass::$ownerTypes !== NULL )
|
||||
if( isset( $nodeClass::$ownerTypes ) and $nodeClass::$ownerTypes !== NULL and $this->options['forceOwner'] !== FALSE )
|
||||
{
|
||||
$nodes = $nodeClass::loadByOwner( $this->options['forceOwner'] ?: \IPS\Member::loggedIn(), $this->options['where'] );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user