Skip to content

Commit 09549a2

Browse files
author
Marius Cramer
committed
Fixed bug from previous commit
1 parent b493d12 commit 09549a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/lib/classes/remote.d/admin.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function update_record_permissions($tablename, $index_field, $index_value
6565
$this->server->fault('invalid parameters', $value . ' is no valid sys_userid.');
6666
return false;
6767
}
68-
$value = $app->functions->intval($value);
68+
$permissions[$key] = $app->functions->intval($value);
6969
break;
7070
case 'sys_groupid':
7171
// check if groupid is valid
@@ -74,7 +74,7 @@ public function update_record_permissions($tablename, $index_field, $index_value
7474
$this->server->fault('invalid parameters', $value . ' is no valid sys_groupid.');
7575
return false;
7676
}
77-
$value = $app->functions->intval($value);
77+
$permissions[$key] = $app->functions->intval($value);
7878
break;
7979
case 'sys_perm_user':
8080
case 'sys_perm_group':
@@ -90,7 +90,7 @@ public function update_record_permissions($tablename, $index_field, $index_value
9090
if(strpos($value, 'i') !== false) $newvalue .= 'i';
9191
if(strpos($value, 'u') !== false) $newvalue .= 'u';
9292
if(strpos($value, 'd') !== false) $newvalue .= 'd';
93-
$value = $newvalue;
93+
$permissions[$key] = $newvalue;
9494
unset($newvalue);
9595

9696
break;

0 commit comments

Comments
 (0)