Exemplo n.º 1
0
 function showTabBucketsAction()
 {
     @($group_id = DevblocksPlatform::importGPC($_REQUEST['id'], 'integer', 0));
     $tpl = DevblocksPlatform::getTemplateService();
     $tpl_path = $this->_TPL_PATH;
     $tpl->assign('path', $tpl_path);
     $active_worker = CerberusApplication::getActiveWorker();
     if (!$active_worker->isTeamManager($group_id) && !$active_worker->is_superuser) {
         return;
     } else {
         $group = DAO_Group::getTeam($group_id);
         $tpl->assign('team', $group);
     }
     $team_categories = DAO_Bucket::getByTeam($group_id);
     $tpl->assign('categories', $team_categories);
     $inbox_is_assignable = DAO_GroupSettings::get($group_id, DAO_GroupSettings::SETTING_INBOX_IS_ASSIGNABLE, 1);
     $tpl->assign('inbox_is_assignable', $inbox_is_assignable);
     $tpl->display('file:' . $tpl_path . 'groups/manage/buckets.tpl');
 }