Explorar el Código

fixed canViewProces

Piotr Labudda hace 10 años
padre
commit
311e5b5b58
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      SE/se-lib/UserAcl.php

+ 2 - 1
SE/se-lib/UserAcl.php

@@ -573,10 +573,11 @@ SQL;
 		$sqlIdUserGroupList = implode(",", array_keys($idUserGroupList));
 		$sqlIdUserGroupList = implode(",", array_keys($idUserGroupList));
 		$checkProcesAccessSql = <<<SQL
 		$checkProcesAccessSql = <<<SQL
 			select count(*) as cnt
 			select count(*) as cnt
-				from `CRM_PROCES_idx_GROUP_to_PROCES` gi
+				from `CRM_PROCES_idx_GROUP_to_PROCES_PERM` gi
 					join `CRM_PROCES` p on(p.`ID`=gi.`ID_PROCES`)
 					join `CRM_PROCES` p on(p.`ID`=gi.`ID_PROCES`)
 				where gi.`ID_GROUP` in({$sqlIdUserGroupList})
 				where gi.`ID_GROUP` in({$sqlIdUserGroupList})
 					and gi.`ID_PROCES`='{$idProcesInit}'
 					and gi.`ID_PROCES`='{$idProcesInit}'
+			--		and gi.`HAS_PERM_R`=1 -- TODO: allow only with defined perm 'R'
 SQL;
 SQL;
 		$db = DB::getDB();
 		$db = DB::getDB();
 		$res = $db->query($checkProcesAccessSql);
 		$res = $db->query($checkProcesAccessSql);