Skip to content
Snippets Groups Projects
Commit 2d368b79 authored by tbrehm's avatar tbrehm
Browse files

Fixed bug on insert permissions

parent e82e5007
No related branches found
No related tags found
No related merge requests found
...@@ -858,7 +858,7 @@ class tform { ...@@ -858,7 +858,7 @@ class tform {
if(@stristr($perm,$this->formDef["auth_preset"]["perm_other"])) $result = true; if(@stristr($perm,$this->formDef["auth_preset"]["perm_other"])) $result = true;
// if preset == 0, everyone can insert a record of this type // if preset == 0, everyone can insert a record of this type
if($this->formDef["auth_preset"]["userid"] == 0 AND $this->formDef["auth_preset"]["groupid"] == 0) $result = true; if($this->formDef["auth_preset"]["userid"] == 0 AND $this->formDef["auth_preset"]["groupid"] == 0 AND (@stristr($perm,$this->formDef["auth_preset"]["perm_user"] OR @stristr($perm,$this->formDef["auth_preset"]["perm_group"])) $result = true;
return $result; return $result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment