From b4d1fb8b8e6e6cdb7be76a2d4fa0d2b9a84f3ba2 Mon Sep 17 00:00:00 2001
From: Vitalii Lysak <v.lysak@dunice.net>
Date: Wed, 10 Aug 2022 15:46:15 +0300
Subject: SILABMC-236: upd layput for ReadOnly role

---
 src/views/_sila/SecurityAndAccess/Ldap/TableRoleGroups.vue | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/views/_sila/SecurityAndAccess/Ldap/TableRoleGroups.vue')

diff --git a/src/views/_sila/SecurityAndAccess/Ldap/TableRoleGroups.vue b/src/views/_sila/SecurityAndAccess/Ldap/TableRoleGroups.vue
index ca52da13..6168ae63 100644
--- a/src/views/_sila/SecurityAndAccess/Ldap/TableRoleGroups.vue
+++ b/src/views/_sila/SecurityAndAccess/Ldap/TableRoleGroups.vue
@@ -11,7 +11,10 @@
       <b-col class="text-right" md="9">
         <b-btn
           variant="primary"
-          :disabled="!isServiceEnabled"
+          :disabled="
+            !isServiceEnabled ||
+            $store.getters['authentication/role'] === 'ReadOnly'
+          "
           @click="initRoleGroupModal(null)"
         >
           <icon-add />
-- 
cgit v1.2.3

