Added basic RBAC component BOD-232
This commit is contained in:
@@ -2,6 +2,7 @@ import React, { useEffect } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import RbacWrapper from "../../components/rbac-wrapper/rbac-wrapper.component";
|
||||
import { setBreadcrumbs } from "../../redux/application/application.actions";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import ProductionBoardComponent from "./production-board.component";
|
||||
@@ -27,7 +28,11 @@ export function ProductionBoardContainer({ setBreadcrumbs, bodyshop }) {
|
||||
]);
|
||||
}, [t, setBreadcrumbs]);
|
||||
|
||||
return <ProductionBoardComponent />;
|
||||
return (
|
||||
<RbacWrapper action="production-board">
|
||||
<ProductionBoardComponent />
|
||||
</RbacWrapper>
|
||||
);
|
||||
}
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
|
||||
Reference in New Issue
Block a user