Changeset 17839
- Timestamp:
- 10/01/08 18:50:46 (2 months ago)
- Files:
-
- trunk/midcom/midcom.core/midcom/core/privilege.php (modified) (2 diffs)
- trunk/midcom/midcom.core/midcom/helper/_dbfactory.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/auth.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/core/privilege.php
r17656 r17839 637 637 { 638 638 $object =& $arg; 639 if (mgd_is_guid($object->guid)) 639 if ( isset($object->__guid) 640 && mgd_is_guid($object->__guid) 641 && !$object->guid) 642 { 643 $guid = $object->__guid; 644 } 645 elseif (mgd_is_guid($object->guid)) 640 646 { 641 647 $guid = $object->guid; … … 675 681 { 676 682 $parent_class = $object->get_dba_parent_class(); 677 $parent_guid = $_MIDCOM->dbfactory->get_parent_guid($ object->guid, get_class($object));683 $parent_guid = $_MIDCOM->dbfactory->get_parent_guid($guid, get_class($object)); 678 684 } 679 685 else trunk/midcom/midcom.core/midcom/helper/_dbfactory.php
r17558 r17839 245 245 { 246 246 $object_guid = null; 247 } 248 elseif ( isset($object->__guid) 249 && !$object->guid) 250 { 251 $object_guid = $object->__guid; 247 252 } 248 253 else trunk/midcom/midcom.core/midcom/services/auth.php
r17752 r17839 1139 1139 } 1140 1140 $this->_load_class_magic_privileges($dummy_object); 1141 $dummy_object-> guid = $object_guid;1141 $dummy_object->__guid = $object_guid; 1142 1142 1143 1143 // Remember to sync this merging chain with can_user_do.
