Beispiel #1
0
         }
         preg_match('/MEETING_([0-9]+)/', $xmlID, $matches);
         if (sizeof($matches) > 0) {
             $meetingID = $matches[1];
             if (CMeeting::GetUserRole($meetingID) !== false) {
                 $arParams['PERMISSION'] = 'M';
             }
         }
     }
 }
 if (IsModuleInstalled('tasks') && CModule::IncludeModule('tasks')) {
     $tasksIsTasksJurisdiction = false;
     // Insurance for cross-modules version compatibility
     if (method_exists('CTasksTools', 'ListTasksForumsAsArray')) {
         try {
             $arTasksForums = CTasksTools::ListTasksForumsAsArray();
             if (in_array((int) $arResult['FORUM']['ID'], $arTasksForums, true)) {
                 $tasksIsTasksJurisdiction = true;
             }
         } catch (TasksException $e) {
             // do nothing
         }
     } else {
         // TODO: this old code section to be removed in next versions.
         $forumId = COption::GetOptionString('tasks', 'task_forum_id', -1);
         if ($forumId !== -1 && (int) $arResult['FORUM']['ID'] === (int) $forumId) {
             $tasksIsTasksJurisdiction = true;
         }
     }
     if ($tasksIsTasksJurisdiction) {
         $arParams['PERMISSION'] = 'D';