public function initializePermissions(array $nodes, array $roles)
    {
        $this->om->startFlushSuite();

        foreach ($nodes as $node) {
            foreach ($roles as $role) {
                $type = $node->getResourceType();
                $this->editPerms(
                    $type->getDefaultMask(),
                    $role,
                    $node,
                    false
                );
            }
        }

        $this->om->endFlushSuite();
    }
public function initializePermissions(array $nodes, array $roles)
    {
        $this->om->startFlushSuite();

        foreach ($nodes as $node) {
            foreach ($roles as $role) {
                $type = $node->getResourceType();
                $this->editPerms(
                    $type->getDefaultMask(),
                    $role,
                    $node,
                    false
                );
            }
        }

        $this->om->endFlushSuite();
    }
public function initializePermissions ( array $ nodes , array $ roles ) { $ this -> om -> startFlushSuite ( ) ; foreach ( $ nodes as $ node ) { foreach ( $ roles as $ role ) { $ type = $ node -> getResourceType ( ) ; $ this -> editPerms ( $ type -> getDefaultMask ( ) , $ role , $ node , false ) ; } } $ this -> om -> endFlushSuite ( ) ; }
Initialize the default permissions for a role list.
Directories are excluded.

@param ResourceNode[] $nodes
@param Role[]         $roles
Initialize the default permissions for a role list . Directories are excluded .