public function getRequiredRights() {
        $privileges = array();
        foreach ($this->getDocBlock()->getTagsByName('requiresRight') as $tag) {
            $privileges[$tag->getParameterName()] = $tag->getRightId();
        }
        return $privileges;
    }