Skip to content

Commit fe25682

Browse files
committed
fix(qusetion): remove strict comparison
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 78797e7 commit fe25682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/form.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ public function isPublicAccess() {
23362336
if ($this->isNewItem()) {
23372337
return false;
23382338
}
2339-
return ($this->getField('access_rights') === (string) \PluginFormcreatorForm::ACCESS_PUBLIC);
2339+
return ($this->fields['access_rights'] == \PluginFormcreatorForm::ACCESS_PUBLIC);
23402340
}
23412341

23422342
/**

0 commit comments

Comments
 (0)