소스 검색

fixed user sync - allow DZIAL as group

Piotr Labudda 10 년 전
부모
커밋
3bb0362184
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      SE/se-lib/UserStorageDB.php

+ 3 - 3
SE/se-lib/UserStorageDB.php

@@ -368,7 +368,7 @@ class UserStorageDB extends UserStorageBase {
 			where
 			where
 				a.`ADM_ACCOUNT`='{$usrLogin}'
 				a.`ADM_ACCOUNT`='{$usrLogin}'
 				and up.`A_STATUS` in('WAITING', 'NORMAL')
 				and up.`A_STATUS` in('WAITING', 'NORMAL')
-				and z.`TYPE` in('STANOWISKO','PODMIOT')
+				and z.`TYPE` in('STANOWISKO','DZIAL','PODMIOT')
 		";
 		";
 		$res = $this->_db->query($sql);
 		$res = $this->_db->query($sql);
 		while ($r = $this->_db->fetch($res)) {
 		while ($r = $this->_db->fetch($res)) {
@@ -549,7 +549,7 @@ class UserStorageDB extends UserStorageBase {
 			where
 			where
 				up.`ID`='{$profileID}'
 				up.`ID`='{$profileID}'
 				and up.`A_STATUS` in('WAITING', 'NORMAL')
 				and up.`A_STATUS` in('WAITING', 'NORMAL')
-				and z.`TYPE` in('STANOWISKO','PODMIOT')
+				and z.`TYPE` in('STANOWISKO','DZIAL','PODMIOT')
 		";
 		";
 		$res = $this->_db->query($sql);
 		$res = $this->_db->query($sql);
 		if ($r = $this->_db->fetch($res)) {
 		if ($r = $this->_db->fetch($res)) {
@@ -597,7 +597,7 @@ class UserStorageDB extends UserStorageBase {
 			where
 			where
 				a.`ADM_ACCOUNT`='{$usrLogin}'
 				a.`ADM_ACCOUNT`='{$usrLogin}'
 				and up.`A_STATUS` in('WAITING', 'NORMAL')
 				and up.`A_STATUS` in('WAITING', 'NORMAL')
-				and z.`TYPE` in('STANOWISKO','PODMIOT')
+				and z.`TYPE` in('STANOWISKO','DZIAL','PODMIOT')
 		";
 		";
 		$res = $this->_db->query($sql);
 		$res = $this->_db->query($sql);
 		while ($r = $this->_db->fetch($res)) {
 		while ($r = $this->_db->fetch($res)) {