diff --git a/src/AclForm.php b/src/AclForm.php index 757805c..9730a52 100644 --- a/src/AclForm.php +++ b/src/AclForm.php @@ -169,15 +169,15 @@ public function render(int $depth = 0, ?string $indent = null, bool $inner = fal $fieldName = $field->getName(); if ($this->acl->hasResource($fieldName)) { $viewDenied = ($this->aclStrict) ? - $this->acl->isDeniedManyStrict($this->roles, $fieldName, $this->permissions['display']) : - $this->acl->isDeniedMany($this->roles, $fieldName, $this->permissions['display']); + $this->acl->isDeniedMultiStrict($this->roles, $fieldName, $this->permissions['display']) : + $this->acl->isDeniedMulti($this->roles, $fieldName, $this->permissions['display']); if ($viewDenied) { unset($fieldset[$fieldName]); } else { $modifyDenied = ($this->aclStrict) ? - $this->acl->isDeniedManyStrict($this->roles, $fieldName, $this->permissions['modify']) : - $this->acl->isDeniedMany($this->roles, $fieldName, $this->permissions['modify']); + $this->acl->isDeniedMultiStrict($this->roles, $fieldName, $this->permissions['modify']) : + $this->acl->isDeniedMulti($this->roles, $fieldName, $this->permissions['modify']); if ($modifyDenied) { $field->setReadonly(true); }