Skip to content

Commit

Permalink
Unset if userid is by chance the same as berechtigung. Linked Wunderb…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpollak committed Jul 23, 2021
1 parent c352fba commit 932f0b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions behavior/behavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public static function db_to_form($record) {

if(isset($formdata->visibleto['user'])) {
$formdata->visibletouser = $formdata->visibleto['user'];
unset($formdata->visibleto['user']);
}

$formdata->editableby = unserialize($record->editableby);
Expand Down
2 changes: 2 additions & 0 deletions behavior/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@

$permissionnames = $datalynx->get_datalynx_permission_names();
$visibleto = unserialize($behavior->visibleto);
unset($visibleto['user']);

$fieldvisible = '';
foreach ($permissionnames as $permissionid => $permissionname) {
if (in_array($permissionid, $visibleto)) {
Expand Down

0 comments on commit 932f0b9

Please sign in to comment.