Skip to content

Commit 2d368b7

Browse files
committed
Fixed bug on insert permissions
1 parent e82e500 commit 2d368b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ function checkPerm($record_id,$perm) {
858858
if(@stristr($perm,$this->formDef["auth_preset"]["perm_other"])) $result = true;
859859

860860
// if preset == 0, everyone can insert a record of this type
861-
if($this->formDef["auth_preset"]["userid"] == 0 AND $this->formDef["auth_preset"]["groupid"] == 0) $result = true;
861+
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;
862862

863863
return $result;
864864

0 commit comments

Comments
 (0)