This commit is contained in:
Philipp 2021-10-08 12:37:53 +02:00
parent f73e4adc44
commit df8bd18673
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -67,7 +67,7 @@ class ProfileField extends BaseModel
if (empty($this->permissionSet)) { if (empty($this->permissionSet)) {
$permissionSet = $this->permissionSetDepository->selectOneById($this->psid); $permissionSet = $this->permissionSetDepository->selectOneById($this->psid);
if ($permissionSet->uid !== $this->uid) { if ($permissionSet->uid !== $this->uid) {
throw new NotFoundException(sprintf('PermissionSet %d for ProfileSet %d is invalid.', $permissionSet->uid, $this->uid)); throw new NotFoundException(sprintf('PermissionSet %d for ProfileField %d is invalid.', $permissionSet->uid, $this->uid));
} }
$this->permissionSet = $permissionSet; $this->permissionSet = $permissionSet;