diff --git a/application/models/Permission.php b/application/models/Permission.php index f5d38556e82..2689d111571 100644 --- a/application/models/Permission.php +++ b/application/models/Permission.php @@ -573,7 +573,7 @@ public function hasPermission($iEntityID, $sEntityName, $sPermission, $sCRUD = ' /* Always return true if you are the owner : this can be done in core plugin ? */ // TODO: give the rights to owner adding line in permissions table, so it will return true with the normal way - if ($iUserID === $this->getEntityOwnerId($iEntityID, $sEntityName)) { + if ($iUserID == $this->getEntityOwnerId($iEntityID, $sEntityName)) { return true; }