From b3f91c4868b47db4ef3373e54b7d9f9fa6abc860 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 4 Jan 2024 21:20:26 +0100 Subject: [PATCH] make branding and email config available to admin --- CHANGES | 2 ++ dashboard/src/index.html | 2 +- dashboard/src/views/emails.html | 14 +++++++------- dashboard/src/views/emails.js | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGES b/CHANGES index 1ce9b8f97..ecf335d1e 100644 --- a/CHANGES +++ b/CHANGES @@ -2728,3 +2728,5 @@ [7.6.4] * mail: update limit plugin * ldap: fix error messages to show proper error messages in the external LDAP connector +* dashboard: fix various UI elements hidden for admin user + diff --git a/dashboard/src/index.html b/dashboard/src/index.html index 936991bd2..10adb215c 100644 --- a/dashboard/src/index.html +++ b/dashboard/src/index.html @@ -177,7 +177,7 @@
  • {{ 'profile.title' | tr }}
  • {{ 'backups.title' | tr }}
  • -
  • {{ 'branding.title' | tr }}
  • +
  • {{ 'branding.title' | tr }}
  • {{ 'domains.title' | tr }}
  • {{ 'emails.title' | tr }}
  • {{ 'eventlog.title' | tr }}
  • diff --git a/dashboard/src/views/emails.html b/dashboard/src/views/emails.html index 18e2bf28d..bd111598d 100644 --- a/dashboard/src/views/emails.html +++ b/dashboard/src/views/emails.html @@ -156,8 +156,8 @@ {{ 'emails.title' | tr }}
    - {{ 'emails.action.queue' | tr }} - {{ 'eventlog.title' | tr }} + {{ 'emails.action.queue' | tr }} + {{ 'eventlog.title' | tr }}
    @@ -213,11 +213,11 @@ -
    +

    {{ 'emails.mailboxSharing.title' | tr }}

    -
    +

    {{ 'emails.mailboxSharing.description' | tr }}

    @@ -234,7 +234,7 @@
    -
    +

    {{ 'emails.settings.location' | tr }}
    @@ -302,11 +302,11 @@
    -
    +

    {{ 'emails.settings.title' | tr }}

    -
    +

    diff --git a/dashboard/src/views/emails.js b/dashboard/src/views/emails.js index f2dc72103..ff507efb5 100644 --- a/dashboard/src/views/emails.js +++ b/dashboard/src/views/emails.js @@ -454,7 +454,7 @@ angular.module('Application').controller('EmailsController', ['$scope', '$locati $scope.domains = domains; $scope.ready = true; - if ($scope.user.isAtLeastOwner) { + if ($scope.user.isAtLeastAdmin) { $scope.mailLocation.refresh(); $scope.maxEmailSize.refresh(); $scope.virtualAllMail.refresh();