/** * add allow for everyone security rule to root node * @return int object id */ public function addAllowSecurityRule() { $class = new \CB\Api\Security(); $data = array('node_id' => 1, 'user_group_id' => \CB\Security::getSystemGroupId('everyone'), 'allow' => 'full_control'); $rez = $class->updateNodeAccess($data); return $rez; }