break;
     /**
      * get user permissions
      */
 /**
  * get user permissions
  */
 case 'user_perm':
     $forum_id = (int) $orca_integration_vars['forum_id'];
     $user_id = getID($user);
     require_once BX_DIRECTORY_PATH_CLASSES . 'BxDolGroups.php';
     $oGroups = new BxDolGroups(false);
     $arrGroup = $oGroups->getGroupInfo($forum_id);
     $isGroupMember = $oGroups->isGroupMember($user_id, $forum_id) ? 1 : 0;
     $isGroupCreator = $arrGroup['creatorID'] == $user_id ? 1 : 0;
     $isAdmin = isOrcaAdmin($user) ? 1 : 0;
     $read_public = 1;
     $post_public = $isGroupMember || $isAdmin ? 1 : 0;
     $edit_public = $isGroupCreator || $isAdmin ? 1 : 0;
     $del_public = $isGroupCreator || $isAdmin ? 1 : 0;
     $read_private = $isGroupMember || $isAdmin ? 1 : 0;
     $post_private = $isGroupMember || $isAdmin ? 1 : 0;
     $edit_private = $isGroupCreator || $isAdmin ? 1 : 0;
     $del_private = $isGroupCreator || $isAdmin ? 1 : 0;
     $edit_own = $isGroupMember || $isAdmin ? 1 : 0;
     $del_own = $isGroupMember || $isAdmin ? 1 : 0;
     $search = 0;
     $sticky = $isGroupMember || $isAdmin ? 1 : 0;
     $orca_integration_xml .= <<<EOF
t\t<user_perm name="{$user}">
t\t\t
\t\t\t\t<profile_url>{$profile_url}</profile_url>
\t\t\t\t<profile_onclick />
                <join_date>{$join_date}</join_date>
                {$aRay}
\t\t\t</user_info>
EOF;
        break;
        /**
         * get user permissions
         */
    /**
     * get user permissions
     */
    case 'user_perm':
        $memberID = $logged['member'] ? $_COOKIE['memberID'] : 0;
        $isOrcaAdmin = isOrcaAdmin($user);
        $aCheckRes = checkAction($memberID, ACTION_ID_USE_ORCA_PUBLIC_FORUM, true);
        $isPublicForumAllowed = CHECK_ACTION_RESULT_ALLOWED == $aCheckRes[CHECK_ACTION_RESULT] ? 1 : 0;
        $aCheckRes = checkAction($memberID, ACTION_ID_USE_ORCA_PRIVATE_FORUM, true);
        $isPrivateForumAllowed = CHECK_ACTION_RESULT_ALLOWED == $aCheckRes[CHECK_ACTION_RESULT] ? 1 : 0;
        $read_public = 1;
        $post_public = $isPublicForumAllowed || $isOrcaAdmin ? 1 : 0;
        $edit_public = $isOrcaAdmin ? 1 : 0;
        $del_public = $isOrcaAdmin ? 1 : 0;
        $read_private = $isPrivateForumAllowed || $isOrcaAdmin ? 1 : 0;
        $post_private = $isPrivateForumAllowed || $isOrcaAdmin ? 1 : 0;
        $edit_private = $isOrcaAdmin ? 1 : 0;
        $del_private = $isOrcaAdmin ? 1 : 0;
        $edit_own = 1;
        $del_own = 1;
        $search = $memberID ? 1 : 0;