Pārlūkot izejas kodu

Extended guard for integrations on sidebar

jnfrati 4 gadi atpakaļ
vecāks
revīzija
28e6635e0c
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  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
           </NavButton>
 
-          {this.props.isAuthorized("integrations", "", ["get"]) && (
+          {this.props.isAuthorized("integrations", "", [
+            "get",
+            "create",
+            "update",
+            "delete",
+          ]) && (
             <NavButton
               selected={currentView === "integrations"}
               onClick={() =>