CEC-4576: update permission for updateDeploy action (#370)
* CEC-4576: use new UpdateDeploy permission * update manifest deploy permission
This commit is contained in:
@@ -2,9 +2,9 @@ import React from "react";
|
||||
import { hasRole } from "../../../utils/roles";
|
||||
|
||||
export const RoleWrap = (props) => {
|
||||
const {groups, rolesPerProvider, providers} = props;
|
||||
const { groups, rolesPerProvider, providers } = props;
|
||||
|
||||
const eitherComponent = props["eitherComponent"] || null;
|
||||
const eitherComponent = props["eitherComponent"] || null;
|
||||
|
||||
if (!hasRole(groups, rolesPerProvider, providers)) {
|
||||
return eitherComponent != null ? eitherComponent : <></>;
|
||||
|
||||
Reference in New Issue
Block a user