summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2017-03-01 23:57:16 +0100
committerJulius Härtl <jus@bitgrid.net>2017-03-16 11:55:09 +0100
commit7eae6690ad2fbf36c83364dbd56b444378ea0a45 (patch)
tree8ec84fcbaae512f2b091c640596c3a92643dde0c /lib/private/legacy
parent61dc78e6dc25f2a342fe523e50c41c557f3c6aca (diff)
downloadnextcloud-server-7eae6690ad2fbf36c83364dbd56b444378ea0a45.tar.gz
nextcloud-server-7eae6690ad2fbf36c83364dbd56b444378ea0a45.zip
Make app management icon act like a normal app icon
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/app.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 3d0ebc9644c..c82d620882d 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -530,6 +530,9 @@ class OC_App {
// This is private as well. It simply works, so don't ask for more details
private static function proceedNavigation($list) {
$headerIconCount = 8;
+ if(OC_User::isAdminUser(OC_User::getUser())) {
+ $headerIconCount--;
+ }
usort($list, function($a, $b) {
if (isset($a['order']) && isset($b['order'])) {
return ($a['order'] < $b['order']) ? -1 : 1;
@@ -573,6 +576,9 @@ class OC_App {
public static function proceedAppNavigation($entries) {
$headerIconCount = 8;
+ if(OC_User::isAdminUser(OC_User::getUser())) {
+ $headerIconCount--;
+ }
$activeAppIndex = -1;
$list = self::proceedNavigation($entries);