Ver Fonte

Extended guard for integrations on sidebar

jnfrati há 5 anos atrás
pai
commit
28e6635e0c
1 ficheiros alterados com 6 adições e 1 exclusões
  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={() =>