Revert "displayed nextcloud user menu like moodle and wp applications - not for admins!"

This reverts commit 6db2b8c60f.
main
elena 2023-04-12 09:35:43 +00:00 committed by Antoni Bertran
parent ee19b3dcd7
commit d4796c0a73
1 changed files with 2 additions and 11 deletions

View File

@ -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,15 +153,7 @@
</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">