jnfrati 4 лет назад
Родитель
Сommit
12fafed28a

+ 4 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedJobChart.tsx

@@ -430,6 +430,10 @@ class ExpandedJobChart extends Component<PropsType, StateType> {
       />
     );
 
+    if (!this.props.isAuthorized("job", "", ["get", "update", "create"])) {
+      saveButton = null;
+    }
+
     switch (currentTab) {
       case "jobs":
         if (this.state.imageIsPlaceholder) {