Unauthorized

Auth

...
_getUsersTableAcl($formFields, $overrideLabels); //$dataSource = $tblAcl->getDataSource(); $cols = array(); $fieldsList = array(); $fieldsListAll = $tblAcl->getFields(); foreach ($formFields as $vColName) { $vColID = $tblAcl->getFieldIdByName($vColName); if (isset($fieldsListAll[$vColID])) { $fieldsList[$vColID] = $fieldsListAll[$vColID]; $cols[$vColID] = ''; //$cols[$kID] = V::get($vCol['name'], '', $row); $cols[$vColID] = V::get("f{$vColID}", $cols[$vColID], $_POST); } else { ?>

Error!

Brak uprawnień do pola
Zarejestruj $vCol) : ?> isAllowed($kID, 'C')) : ?>
true, 'tabindex'=>(++$tabindex), 'maxGrid'=>8); echo $tblAcl->showFormItem('C', $kID, "f{$kID}", $cols[$kID], $fieldParams); ?>
hasTableAcl($idTable)) { // .cnf--auth-{host}.ini.php $conf = Config::getConfFile('auth'); if (!$conf) throw new Exception("Config file for 'auth' not found!"); $isRegisterAllowed = V::get('allow_register', false, $conf); //DBG::_(true, true, "conf (isRegisterAllowed={$isRegisterAllowed})", $conf, __CLASS__, __FUNCTION__, __LINE__); if (!$isRegisterAllowed) throw new Exception("Brak uprawnień do rejestracji"); $zasobTblInfo = ProcesHelper::getZasobTableInfoByUri($tblUri = "default_db/ADMIN_USERS"); if (!$zasobTblInfo) throw new HttpException("Brak zasobu dla tabeli użytkowników", 404); //DBG::_(true, true, "zasobTblInfo", $zasobTblInfo, __CLASS__, __FUNCTION__, __LINE__); { $tableConfig = array(); $tableConfig['ID_TABLE'] = $idTable; $tableConfig['db'] = $zasobTblInfo->P__ID; $tableConfig['name'] = $zasobTblInfo->DESC; $tableConfig['label'] = $zasobTblInfo->DESC_PL; $tableConfig['opis'] = $zasobTblInfo->OPIS; //DBG::_(true, true, "formFields", $formFields, __CLASS__, __FUNCTION__, __LINE__); //DBG::_(true, true, "tableConfig", $tableConfig, __CLASS__, __FUNCTION__, __LINE__); } { $fieldsConfig = array(); $fldsInfo = ProcesHelper::getZasobTableFieldsInfo($idTable); //DBG::_(true, true, "fldsInfo", $fldsInfo, __CLASS__, __FUNCTION__, __LINE__); foreach ($fldsInfo as $fldInfo) { if (!in_array($fldInfo->DESC, $formFields)) continue; $fldConf = array(); $fldConf['ID_CELL'] = $fldInfo->ID; $fldConf['CELL_NAME'] = $fldInfo->DESC; $fldConf['CELL_DESC'] = (array_key_exists($fldInfo->DESC, $overrideLabels))? $overrideLabels[$fldInfo->DESC] : $fldInfo->OPIS; $fldConf['CELL_LABEL'] = (array_key_exists($fldInfo->DESC, $overrideLabels))? $overrideLabels[$fldInfo->DESC] : $fldInfo->DESC_PL; $fldConf['SORT_PRIO'] = $fldInfo->SORT_PRIO; $fldConf['FORM_TREAT'] = 'RWXC'; $fieldsConfig[$fldInfo->ID] = $fldConf; } //DBG::_(true, true, "fieldsConfig", $fieldsConfig, __CLASS__, __FUNCTION__, __LINE__); } {// TODO: init and save in session default perms DBG::_(true, true, "ses tbl cache[{$idTable}]", $_SESSION['TableAcl_cache'][$idTable], __CLASS__, __FUNCTION__, __LINE__); $tblAcl = TableAcl::buildInstance($idTable, $tableConfig); $tblAcl->initFieldsFromConfig($fieldsConfig); $tblAcl->save(); DBG::_(true, true, "ses tbl cache[{$idTable}]", $_SESSION['TableAcl_cache'][$idTable], __CLASS__, __FUNCTION__, __LINE__); } //throw new Exception("Brak uprawnień do tabeli ID={$idTable}"); } //DBG::_(true, true, "_SESSION['UserAcl_cache']['foundTables']", $_SESSION['UserAcl_cache']['foundTables'], __CLASS__, __FUNCTION__, __LINE__); //$tblAcl = $userAcl->getTableAcl($idTable); if (!$tblAcl) throw new Exception("Brak tabeli"); $tblAcl->init(); DBG::_(true, true, "tblAcl", $tblAcl, __CLASS__, __FUNCTION__, __LINE__); return $tblAcl; } }