- Модуль: learning
- Путь к файлу: ~/bitrix/modules/learning/classes/general/clearnrenderrightsedit.php
- Класс: CLearnRenderRightsEdit
- Вызов: CLearnRenderRightsEdit::RenderLessonRightsTab
static function RenderLessonRightsTab ($userId, $POSTName = 'LESSON_RIGHTS', $lessonId, $readOnly)
{
$oAccess = CLearnAccess::GetInstance ($userId);
$arPossibleRights = $oAccess->ListAllPossibleRights();
$arBaseRights = $oAccess->GetBasePermissions();
// is it base permissions request?
if ($lessonId === false)
$arActualRights = $arBaseRights;
elseif ($lessonId == 0) // is new lesson?
$arActualRights = array();
else
$arActualRights = $oAccess->GetLessonPermissions($lessonId);
CLearnRenderRightsEdit::LearningShowRights(
$lessonId, // expected (bool)false for base rights
$POSTName,
$arBaseRights,
$arPossibleRights,
$arActualRights,
array(),
array(),
$readOnly
);
}