mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	SeedDMS_Folder_DMS::getAccessList() and getDefaultAccess() do not return fals anymore if the parent does not exists. They just stop inheritance.
This commit is contained in:
		
							parent
							
								
									91be15c60a
								
							
						
					
					
						commit
						d867e5d0b8
					
				|  | @ -465,8 +465,12 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object { | |||
| 	 */ | ||||
| 	function getDefaultAccess() { /* {{{ */ | ||||
| 		if ($this->inheritsAccess()) { | ||||
| 			/* Access is supposed to be inherited but it could be that there | ||||
| 			 * is no parent because the configured root folder id is somewhere | ||||
| 			 * below the actual root folder. | ||||
| 			 */ | ||||
| 			$res = $this->getParent(); | ||||
| 			if (!$res) return false; | ||||
| 			if ($res) | ||||
| 				return $this->_parent->getDefaultAccess(); | ||||
| 		} | ||||
| 
 | ||||
|  | @ -1226,8 +1230,12 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object { | |||
| 		$db = $this->_dms->getDB(); | ||||
| 
 | ||||
| 		if ($this->inheritsAccess()) { | ||||
| 			/* Access is supposed to be inherited but it could be that there | ||||
| 			 * is no parent because the configured root folder id is somewhere | ||||
| 			 * below the actual root folder. | ||||
| 			 */ | ||||
| 			$res = $this->getParent(); | ||||
| 			if (!$res) return false; | ||||
| 			if ($res) | ||||
| 				return $this->_parent->getAccessList($mode, $op); | ||||
| 		} | ||||
| 
 | ||||
|  |  | |||
|  | @ -15,8 +15,8 @@ | |||
|  <date>2020-09-29</date> | ||||
|  <time>13:44:55</time> | ||||
|  <version> | ||||
|   <release>5.1.20</release> | ||||
|   <api>5.1.20</api> | ||||
|   <release>5.1.21</release> | ||||
|   <api>5.1.21</api> | ||||
|  </version> | ||||
|  <stability> | ||||
|   <release>stable</release> | ||||
|  | @ -24,10 +24,7 @@ | |||
|  </stability> | ||||
|  <license uri="http://opensource.org/licenses/gpl-license">GPL License</license> | ||||
|  <notes> | ||||
| - SeedDMS_Core_DMS::getDocumentList() returns false, if an unknown list is passed | ||||
| - SeedDMS_Core_Document::getDocumentFiles() has new parameter to select only those files attached to a specific version of the document | ||||
| - removing a document version will not remove attachments of the document anymore | ||||
| - set dms of new user instances in SeedDMS_Core_Group | ||||
| - SeedDMS_Folder_DMS::getAccessList() and getDefaultAccess() do not return fals anymore if the parent does not exists. They just stop inheritance. | ||||
|  </notes> | ||||
|  <contents> | ||||
|   <dir baseinstalldir="SeedDMS" name="/"> | ||||
|  | @ -1822,5 +1819,24 @@ add method SeedDMS_Core_DatabaseAccess::setLogFp() | |||
| - add new attribute types 'document', 'folder', 'user', 'group' | ||||
|    </notes> | ||||
|   </release> | ||||
|   <release> | ||||
|    <date>2020-09-29</date> | ||||
|    <time>13:44:55</time> | ||||
|    <version> | ||||
|     <release>5.1.20</release> | ||||
|     <api>5.1.20</api> | ||||
|    </version> | ||||
|    <stability> | ||||
|     <release>stable</release> | ||||
|     <api>stable</api> | ||||
|    </stability> | ||||
|    <license uri="http://opensource.org/licenses/gpl-license">GPL License</license> | ||||
|    <notes> | ||||
| - SeedDMS_Core_DMS::getDocumentList() returns false, if an unknown list is passed | ||||
| - SeedDMS_Core_Document::getDocumentFiles() has new parameter to select only those files attached to a specific version of the document | ||||
| - removing a document version will not remove attachments of the document anymore | ||||
| - set dms of new user instances in SeedDMS_Core_Group | ||||
|    </notes> | ||||
|   </release> | ||||
|  </changelog> | ||||
| </package> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann