Revert "displayed nextcloud user menu like moodle and wp applications - not for admins!"
This reverts commit 6db2b8c60f
.
main
parent
79b4d246ea
commit
2cb1541d2e
|
@ -23,7 +23,6 @@
|
|||
$api_url = "https://" . preg_replace('/^nextcloud\./', 'api.', $_SERVER['HTTP_HOST']);
|
||||
$avatar_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/avatar-provider";
|
||||
$profile_url = "https://" . preg_replace('/^nextcloud\./', 'sso.', $_SERVER['HTTP_HOST']) . "/auth/realms/master/account";
|
||||
$showsettings = in_array($_['user_uid'], ['admin', 'ddadmin']) ? true : false;
|
||||
|
||||
// Remove user menu Settings item for non-administrator users
|
||||
if(!array_key_exists('core_apps', $_["settingsnavigation"])){
|
||||
|
@ -154,22 +153,14 @@
|
|||
</a>
|
||||
</li>
|
||||
<?php foreach ($_['settingsnavigation'] as $entry):?>
|
||||
<?php if ($showsettings) { ?>
|
||||
<li data-id="<?php p($entry['id']); ?>">
|
||||
<a href="<?php print_unescaped($entry['href']); ?>"
|
||||
<?php if ($entry["active"]): ?> class="active"<?php endif; ?>>
|
||||
<img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
|
||||
<?php p($entry['name']) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php } else if ($entry['id'] == 'logout') { ?>
|
||||
<?php if ($entry['id'] == 'logout') { ?>
|
||||
<li data-id="<?php p($entry['id']); ?>">
|
||||
<a href="<?php print_unescaped($entry['href']); ?>">
|
||||
<div class="ddiconcontainer">
|
||||
<i class="icon fa fa-sign-out fa-fw ddicon" aria-hidden="true"></i> </div>
|
||||
<?php p($entry['name']) ?>
|
||||
</a>
|
||||
</li>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue