Revert "displayed nextcloud user menu like moodle and wp applications - not for admins!"
This reverts commit 6db2b8c60f
.
main
parent
ee19b3dcd7
commit
d4796c0a73
|
@ -23,7 +23,6 @@
|
||||||
$api_url = "https://" . preg_replace('/^nextcloud\./', 'api.', $_SERVER['HTTP_HOST']);
|
$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";
|
$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";
|
$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
|
// Remove user menu Settings item for non-administrator users
|
||||||
if(!array_key_exists('core_apps', $_["settingsnavigation"])){
|
if(!array_key_exists('core_apps', $_["settingsnavigation"])){
|
||||||
|
@ -154,22 +153,14 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php foreach ($_['settingsnavigation'] as $entry):?>
|
<?php foreach ($_['settingsnavigation'] as $entry):?>
|
||||||
<?php if ($showsettings) { ?>
|
<?php if ($entry['id'] == 'logout') { ?>
|
||||||
<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') { ?>
|
|
||||||
<li data-id="<?php p($entry['id']); ?>">
|
<li data-id="<?php p($entry['id']); ?>">
|
||||||
<a href="<?php print_unescaped($entry['href']); ?>">
|
<a href="<?php print_unescaped($entry['href']); ?>">
|
||||||
<div class="ddiconcontainer">
|
<div class="ddiconcontainer">
|
||||||
<i class="icon fa fa-sign-out fa-fw ddicon" aria-hidden="true"></i> </div>
|
<i class="icon fa fa-sign-out fa-fw ddicon" aria-hidden="true"></i> </div>
|
||||||
<?php p($entry['name']) ?>
|
<?php p($entry['name']) ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue