Просмотр исходного кода

szybki test developperski aby wiedziec co ograniczyc dla obcych userow systemu

a.binder 11 лет назад
Родитель
Сommit
02d092addd
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      SE/superedit-PRZYPOMNIJ.php

+ 5 - 1
SE/superedit-PRZYPOMNIJ.php

@@ -347,7 +347,8 @@ $ILOSC_PROCES = 0;
  */
 
 $dateFltrTypes = $przypomnij->getDateFltrTypes();
-
+$getLdapGroupsNames=User::getLdapGroupsNames();
+DEBUG_S(-3,'$getLdapGroupsNames',array($getLdapGroupsNames,$tasks,$sqlAllowedUsersList),__FILE__,__FUNCTION__,__LINE__);
 ?>
 <table class="tbl-przypomnij table table-bordered table-hover fltr-hide_PO_7_DNIACH fltr-hide_BRAK">
 	<thead>
@@ -362,6 +363,9 @@ $dateFltrTypes = $przypomnij->getDateFltrTypes();
 	<tbody>
 		<?php foreach ($tasks as $id => $task) : ?>
 			<?php
+				
+				if(!(in_array($task->A_CLASSIFIED, $getLdapGroupsNames)) and $task->A_CLASSIFIED!='' ) continue;
+				
 				if (!$task->_show) continue;
 
 				if ($task->_task_type == 'projekt') {