lib/components/types/Collector.php
public function getAuthorities()
    {
        $authorities = [];
        foreach ($this->getAll() as $typeItem) {
            if (isset($typeItem->object) && $typeItem->object->getBehavior('Authority') !== null) {
                $authorities[$typeItem->object->systemId] = $typeItem->object;
            }
        }

        return $authorities;
    }
public function getAuthorities()
    {
        $authorities = [];
        foreach ($this->getAll() as $typeItem) {
            if (isset($typeItem->object) && $typeItem->object->getBehavior('Authority') !== null) {
                $authorities[$typeItem->object->systemId] = $typeItem->object;
            }
        }

        return $authorities;
    }
Get authorities.

@return [[@doctodo return_type:getAuthorities]] [[@doctodo return_description:getAuthorities]]