Commit 8ee684b3 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5902-user-tabs-with-plselfmodify-false-should-not-show-in-user-menu' into '1.4-dev'

Resolve "User tabs with plSelfModify=FALSE should not show in user menu"

See merge request fusiondirectory/fd!417
parents 0e064e86 70e6a3b0
......@@ -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