...Человеческий поиск в разработке...
- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/manager/task.php
- Класс: Bitrix\Tasks\Manager\Task
- Вызов: Task::translateAllowedActionNames
static function translateAllowedActionNames($can) { $newCan = array(); if (is_array($can)) { foreach ($can as $act => $flag) { $newCan[ str_replace('ACTION_', '', $act) ] = $flag; } static::replaceKey($newCan, 'CHANGE_DIRECTOR', 'EDIT.ORIGINATOR'); static::replaceKey($newCan, 'CHECKLIST_REORDER_ITEMS', 'CHECKLIST.REORDER'); static::replaceKey($newCan, 'ELAPSED_TIME_ADD', 'ELAPSEDTIME.ADD'); static::replaceKey($newCan, 'START_TIME_TRACKING', 'DAYPLAN.TIMER.TOGGLE'); // todo: when mobile stops using this fields, remove the third argument here static::replaceKey($newCan, 'CHANGE_DEADLINE', 'EDIT.PLAN', false); // used in mobile already static::replaceKey($newCan, 'CHECKLIST_ADD_ITEMS', 'CHECKLIST.ADD', false); // used in mobile already static::replaceKey($newCan, 'ADD_FAVORITE', 'FAVORITE.ADD', false); // used in mobile already static::replaceKey($newCan, 'DELETE_FAVORITE', 'FAVORITE.DELETE', false); // used in mobile already } return $newCan; }