Explorar o código

Extended guard for integrations on sidebar

jnfrati %!s(int64=4) %!d(string=hai) anos
pai
achega
28e6635e0c
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      dashboard/src/main/home/sidebar/Sidebar.tsx

+ 6 - 1
dashboard/src/main/home/sidebar/Sidebar.tsx

@@ -234,7 +234,12 @@ class Sidebar extends Component<PropsType, StateType> {
             Launch
             Launch
           </NavButton>
           </NavButton>
 
 
-          {this.props.isAuthorized("integrations", "", ["get"]) && (
+          {this.props.isAuthorized("integrations", "", [
+            "get",
+            "create",
+            "update",
+            "delete",
+          ]) && (
             <NavButton
             <NavButton
               selected={currentView === "integrations"}
               selected={currentView === "integrations"}
               onClick={() =>
               onClick={() =>