public function _on_updated() { $this->_update_directory_timestamp(); // Sync the object's ACL properties into MidCOM ACL system $sync = new org_openpsa_core_acl_synchronizer(); $sync->write_acls($this, $this->orgOpenpsaOwnerWg, $this->orgOpenpsaAccesstype); }
public function _on_updated() { $this->_update_parent_timestamp(); $ownerwg = $this->parameter('org.openpsa.core', 'orgOpenpsaOwnerWg'); $accesstype = $this->parameter('org.openpsa.core', 'orgOpenpsaAccesstype'); if ($ownerwg && $accesstype) { // Sync the object's ACL properties into MidCOM ACL system $sync = new org_openpsa_core_acl_synchronizer(); $sync->write_acls($this, $ownerwg, $accesstype); } }
public function _on_updated() { // Sync the object's ACL properties into MidCOM ACL system if (!$this->_skip_acl_refresh) { if ($this->orgOpenpsaAccesstype && $this->orgOpenpsaOwnerWg) { debug_add("Synchronizing task ACLs to MidCOM"); $sync = new org_openpsa_core_acl_synchronizer(); $sync->write_acls($this, $this->orgOpenpsaOwnerWg, $this->orgOpenpsaAccesstype); } //Ensure manager can do stuff if ($this->manager) { $manager_person = self::pid_to_obj($this->manager); $this->set_privilege('midgard:read', $manager_person->id, MIDCOM_PRIVILEGE_ALLOW); $this->set_privilege('midgard:create', $manager_person->id, MIDCOM_PRIVILEGE_ALLOW); $this->set_privilege('midgard:delete', $manager_person->id, MIDCOM_PRIVILEGE_ALLOW); $this->set_privilege('midgard:update', $manager_person->id, MIDCOM_PRIVILEGE_ALLOW); } } $this->_update_parent(); $this->_locale_restore(); }