dkd / php-cmis-client

This is a PHP CMIS Client implementation based on OpenCMIS. It has been retired and put in to archive mode.
Apache License 2.0
54 stars 34 forks source link

Implement getAcl method #75

Closed sascha-egerer closed 2 days ago

wallon-ines commented 4 years ago

You forgot AbstractCmisObject modification in your pr. but with this modification It's work

diff --git a/src/DataObjects/AbstractCmisObject.php b/src/DataObjects/AbstractCmisObject.php
index 727807e..9477777 100644
--- a/src/DataObjects/AbstractCmisObject.php
+++ b/src/DataObjects/AbstractCmisObject.php
@@ -747,7 +747,8 @@ abstract class AbstractCmisObject implements CmisObjectInterface
      */
     public function getAcl()
     {
-        return $this->acl;
+        $result = $this->getSession()->getAcl($this, false);
+        return $result;

     }

     /**

In my Drupal, it's work too :

Capture d’écran_2020-08-18_09-22-11