mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 12:41:20 +00:00 
			
		
		
		
	Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
		
						commit
						58434abf10
					
				|  | @ -348,8 +348,10 @@ class SeedDMS_NotificationService { | |||
| 		foreach ($notifyList["groups"] as $grp) { | ||||
| 			$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); | ||||
| 		} | ||||
| 		/* if user is not owner send notification to owner */ | ||||
| 		if ($user->getID() != $document->getOwner()->getID())  | ||||
| 		// if user is not owner and owner not already in list of notifiers, then
 | ||||
| 		// send notification to owner
 | ||||
| 		if($user->getID() != $document->getOwner()->getID() && | ||||
| 			false === SeedDMS_Core_DMS::inList($document->getOwner(), $notifyList['users'])) | ||||
| 			$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); | ||||
| 
 | ||||
| 		$this->sendRequestWorkflowActionMail($lc, $user); | ||||
|  | @ -513,8 +515,10 @@ class SeedDMS_NotificationService { | |||
| 			$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); | ||||
| 		} | ||||
| 
 | ||||
| 		/* if user is not owner send notification to owner */ | ||||
| 		if ($user->getID() != $document->getOwner()->getID())  | ||||
| 		// if user is not owner and owner not already in list of notifiers, then
 | ||||
| 		// send notification to owner
 | ||||
| 		if($user->getID() != $document->getOwner()->getID() && | ||||
| 			false === SeedDMS_Core_DMS::inList($document->getOwner(), $notifyList['users'])) | ||||
| 			$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); | ||||
| 
 | ||||
| 	} /* }}} */ | ||||
|  | @ -724,8 +728,10 @@ class SeedDMS_NotificationService { | |||
| 			foreach ($notifyList["groups"] as $grp) { | ||||
| 				$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); | ||||
| 			} | ||||
| 			// if user is not owner send notification to owner
 | ||||
| 			if ($user->getID() != $folder->getOwner()->getID())  | ||||
| 			// if user is not owner and owner not already in list of notifiers, then
 | ||||
| 			// send notification to owner
 | ||||
| 			if($user->getID() != $folder->getOwner()->getID() && | ||||
| 				false === SeedDMS_Core_DMS::inList($folder->getOwner(), $notifyList['users'])) | ||||
| 				$this->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); | ||||
| 		} | ||||
| 	} /* }}} */ | ||||
|  | @ -806,8 +812,10 @@ class SeedDMS_NotificationService { | |||
| 			foreach ($notifyList["groups"] as $grp) { | ||||
| 				$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); | ||||
| 			} | ||||
| 			// if user is not owner send notification to owner
 | ||||
| 			if ($user->getID() != $folder->getOwner()->getID())  | ||||
| 			// if user is not owner and owner not already in list of notifiers, then
 | ||||
| 			// send notification to owner
 | ||||
| 			if($user->getID() != $folder->getOwner()->getID() && | ||||
| 				false === SeedDMS_Core_DMS::inList($folder->getOwner(), $notifyList['users'])) | ||||
| 				$this->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); | ||||
| 		} | ||||
| 	} /* }}} */ | ||||
|  | @ -838,7 +846,8 @@ class SeedDMS_NotificationService { | |||
| 		foreach ($nl["groups"] as $grp) { | ||||
| 			$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); | ||||
| 		} | ||||
| 		// if user is not owner send notification to owner
 | ||||
| 		// if user is not owner and owner not already in list of notifiers, then
 | ||||
| 		// send notification to owner
 | ||||
| 		if ($user->getID() != $document->getOwner()->getID() && | ||||
| 			false === SeedDMS_Core_DMS::inList($document->getOwner(), $notifyList['users'])) { | ||||
| 			$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); | ||||
|  | @ -896,6 +905,12 @@ class SeedDMS_NotificationService { | |||
| 		foreach ($nl["groups"] as $grp) { | ||||
| 			$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); | ||||
| 		} | ||||
| 		// if user is not owner and owner not already in list of notifiers, then
 | ||||
| 		// send notification to owner
 | ||||
| 		if ($user->getID() != $document->getOwner()->getID() && | ||||
| 			false === SeedDMS_Core_DMS::inList($document->getOwner(), $nl['users'])) { | ||||
| 			$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); | ||||
| 		} | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
| 	public function sendChangedDocumentStatusMail($content, $user, $oldstatus) { /* {{{ */ | ||||
|  | @ -1175,7 +1190,11 @@ class SeedDMS_NotificationService { | |||
| 			foreach ($notifyList["groups"] as $grp) { | ||||
| 				$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); | ||||
| 			} | ||||
| //			$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
 | ||||
| 			/* Send mail to old owner only if the currently logged in user is not the | ||||
| 			 * owner and the owner is not already in the list of notifiers. | ||||
| 			 */ | ||||
| 			if($user->getID() != $oldowner()->getID() && false === SeedDMS_Core_DMS::inList($oldowner(), $notifyList['users'])) | ||||
| 				$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); | ||||
| 		} | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
|  | @ -1200,6 +1219,11 @@ class SeedDMS_NotificationService { | |||
| 			foreach ($notifyList["groups"] as $grp) { | ||||
| 				$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); | ||||
| 			} | ||||
| 			/* Send mail to old owner only if the currently logged in user is not the | ||||
| 			 * owner and the owner is not already in the list of notifiers. | ||||
| 			 */ | ||||
| 			if($user->getID() != $oldowner()->getID() && false === SeedDMS_Core_DMS::inList($oldowner(), $notifyList['users'])) | ||||
| 				$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); | ||||
| 		} | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann