Add privilege check to power operation button

Disables power operation buttons for users with
"Read-only" privileges. This change ensures that only "Operator" and
administrative users can perform power operations, preventing
unauthorized actions and enhancing system security.

Change-Id: I515ede092cef3c82a110d9534d9f8d3d6afc3135
Signed-off-by: Aravinth S <aravinths@ami.com>
diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js
index ed3e381..e42367b 100644
--- a/src/store/modules/GlobalStore.js
+++ b/src/store/modules/GlobalStore.js
@@ -7,6 +7,12 @@
   diagnosticMode: 'xyz.openbmc_project.State.Host.HostState.DiagnosticMode',
 };
 
+const privilegesId = {
+  admin: 'Administrator',
+  operator: 'Operator',
+  readOnly: 'ReadOnly',
+};
+
 const serverStateMapper = (hostState) => {
   switch (hostState) {
     case HOST_STATE.on:
@@ -137,5 +143,6 @@
     },
   },
 };
+export { GlobalStore, serverStateMapper, privilegesId };
 
 export default GlobalStore;