Commit 70e6a3b0 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(core) User tabs with plSelfModify=FALSE should not show in personal menu

issue #5902
parent 0e064e86
......@@ -1039,7 +1039,9 @@ class config
$this->data['SECTIONS']['personal'] = array('NAME' => _('My account'), 'PRIORITY' => 40);
$personal = array();
foreach ($this->data['TABS']['USERTABS'] as $tab) {
$personal[] = array('CLASS' => $tab['CLASS'], 'ACL' => 'user/'.$tab['CLASS'].':self');
if ($plist->info[$tab['CLASS']]['plSelfModify']) {
$personal[] = array('CLASS' => $tab['CLASS'], 'ACL' => 'user/'.$tab['CLASS'].':self');
}
}
if (!isset($this->data['MENU']['personal'])) {
$this->data['MENU']['personal'] = $personal;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment