Skip to content

Commit

Permalink
FIX: skip adding tab if user doesn't have permission (Dolibarr#28698)
Browse files Browse the repository at this point in the history
verifCond function checks whether user has right and we should skip adding it if user doesn't have right
  • Loading branch information
mc2rcanarslan authored Mar 8, 2024
1 parent 491e850 commit e74e638
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -10189,6 +10189,8 @@ function complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type,
$newtab[1] = $label;
$newtab[2] = str_replace('+', '', $values[1]);
$h++;
} else {
continue;
}
} elseif (count($values) == 5) { // case deprecated
dol_syslog('Passing 5 values in tabs module_parts is deprecated. Please update to 6 with permissions.', LOG_WARNING);
Expand Down

0 comments on commit e74e638

Please sign in to comment.