Przeglądaj źródła

fixed aktywacja usług to use super perm Write (S)

Piotr Labudda 9 lat temu
rodzic
commit
8e2f4d9ac8
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      SE/superedit-POKAZ_OFERTY_AKTUALNE_FUNC.php

+ 4 - 1
SE/superedit-POKAZ_OFERTY_AKTUALNE_FUNC.php

@@ -1836,7 +1836,7 @@ body {font:11px helvetica, arial;}
 		$cols = array();
 
 		$record = $dataSource->getItem($id_ses_a);
-		if (!$tblAcl->canWriteRecord($record)) {
+		if (!$tblAcl->canWriteRecord($record) && !$tblAcl->hasPermSuperWrite()) {
 			echo '<div class="alert alert-danger">';
 				echo "Brak dostępu do rekordu";// TODO: more info - reason
 			echo '</div>';
@@ -1879,6 +1879,9 @@ body {font:11px helvetica, arial;}
 			}
 		}
 
+		if(V::get('DBG_UA', '', $_GET)){echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;text-align:left;">$cols (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($cols);echo'</pre>';}
+		if(V::get('DBG_UA', '', $_GET)){echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;text-align:left;">$tsValues (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($tsValues);echo'</pre>';}
+
 		$this->activate_services_save($tblAcl, $fieldsList, $sqlTable, $sqlSesBTable, $_POST);
 
 		?>