LSrelation : fix check right on relation with specific object

This commit is contained in:
Benjamin Renard 2017-04-28 17:05:48 +02:00
parent 7909d55b39
commit b067c943ed

View file

@ -108,6 +108,7 @@ class LSrelation {
}
public function canEditRelationWithObject($objRel) {
if (!$this -> canEdit()) return;
if (isset($this -> config['canEdit_function'])) {
if (method_exists($objRel,$this -> config['canEdit_function'])) {
return call_user_func(array($objRel, $this -> config['canEdit_function']));