Craft\WorkflowService::renderEntrySidebar PHP Method

renderEntrySidebar() public method

public renderEntrySidebar ( )
    public function renderEntrySidebar()
    {
        $settings = $this->getSettings();
        $user = craft()->userSession->getUser();
        $editorGroup = craft()->userGroups->getGroupById($settings->editorUserGroup);
        $publisherGroup = craft()->userGroups->getGroupById($settings->publisherUserGroup);
        if (!$user) {
            return false;
        }
        // Only show the sidebar submission button for editors
        if ($user->isInGroup($editorGroup)) {
            $this->_renderEntrySidebarPanel('editor-pane');
        }
        // Show another information panel for publishers (if there's submission info)
        if ($user->isInGroup($publisherGroup)) {
            $this->_renderEntrySidebarPanel('publisher-pane');
        }
    }