|
@@ -6,7 +6,7 @@ class ACL {
|
|
|
/**
|
|
/**
|
|
|
* Ids List of Proces Init for given tabel (skip filters)
|
|
* Ids List of Proces Init for given tabel (skip filters)
|
|
|
*/
|
|
*/
|
|
|
- public function getTableProcesInitIds($idTable) {// TODO: use in TableAjax
|
|
|
|
|
|
|
+ public static function getTableProcesInitIds($idTable) {
|
|
|
$procesInitList = self::getTableProcesInitList($idTable);
|
|
$procesInitList = self::getTableProcesInitList($idTable);
|
|
|
return array_keys($procesInitList);
|
|
return array_keys($procesInitList);
|
|
|
}
|
|
}
|
|
@@ -14,7 +14,7 @@ class ACL {
|
|
|
/**
|
|
/**
|
|
|
* List of Proces Init for given table (skip filters)
|
|
* List of Proces Init for given table (skip filters)
|
|
|
*/
|
|
*/
|
|
|
- public function getTableProcesInitList($idTable) {// TODO: use in TableAjax
|
|
|
|
|
|
|
+ public static function getTableProcesInitList($idTable) {
|
|
|
$tableProcesInitList = array();
|
|
$tableProcesInitList = array();
|
|
|
$sqlIdProcesListSql = <<<SQL
|
|
$sqlIdProcesListSql = <<<SQL
|
|
|
select tpv.`ID_PROCES`
|
|
select tpv.`ID_PROCES`
|
|
@@ -148,7 +148,7 @@ SQL;
|
|
|
return $map;
|
|
return $map;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function canGroupViewProces($idGroup, $idProcesInit) {
|
|
|
|
|
|
|
+ public static function canGroupViewProces($idGroup, $idProcesInit) {
|
|
|
$isAllowed = false;
|
|
$isAllowed = false;
|
|
|
$idProcesInit = (int)$idProcesInit;
|
|
$idProcesInit = (int)$idProcesInit;
|
|
|
if (!$idProcesInit) return false;
|
|
if (!$idProcesInit) return false;
|