Skip to content

Commit

Permalink
fix(qusetion): remove strict comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Nov 15, 2019
1 parent 78797e7 commit fe25682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,7 @@ public function isPublicAccess() {
if ($this->isNewItem()) {
return false;
}
return ($this->getField('access_rights') === (string) \PluginFormcreatorForm::ACCESS_PUBLIC);
return ($this->fields['access_rights'] == \PluginFormcreatorForm::ACCESS_PUBLIC);
}

/**
Expand Down

0 comments on commit fe25682

Please sign in to comment.