mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
hotfix: add permission guard in transfer to laying page
This commit is contained in:
@@ -1,15 +1,25 @@
|
|||||||
import TransferToLayingsTable from '@/components/pages/production/transfer-to-laying/TransferToLayingsTable';
|
import TransferToLayingsTable from '@/components/pages/production/transfer-to-laying/TransferToLayingsTable';
|
||||||
import TransferToLayingFormModal from '@/components/pages/production/transfer-to-laying/TransferToLayingFormModal';
|
import TransferToLayingFormModal from '@/components/pages/production/transfer-to-laying/TransferToLayingFormModal';
|
||||||
import TransferToLayingDetailModal from '@/components/pages/production/transfer-to-laying/TransferToLayingDetailModal';
|
import TransferToLayingDetailModal from '@/components/pages/production/transfer-to-laying/TransferToLayingDetailModal';
|
||||||
|
import RequirePermission from '@/components/helper/RequirePermission';
|
||||||
|
|
||||||
const TransferToLaying = () => {
|
const TransferToLaying = () => {
|
||||||
return (
|
return (
|
||||||
<section className='w-full'>
|
<section className='w-full'>
|
||||||
<TransferToLayingsTable />
|
<TransferToLayingsTable />
|
||||||
|
|
||||||
<TransferToLayingFormModal />
|
<RequirePermission
|
||||||
|
permissions={[
|
||||||
|
'lti.production.transfer_to_laying.create',
|
||||||
|
'lti.production.transfer_to_laying.update',
|
||||||
|
]}
|
||||||
|
>
|
||||||
|
<TransferToLayingFormModal />
|
||||||
|
</RequirePermission>
|
||||||
|
|
||||||
<TransferToLayingDetailModal />
|
<RequirePermission permissions='lti.production.transfer_to_laying.detail'>
|
||||||
|
<TransferToLayingDetailModal />
|
||||||
|
</RequirePermission>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user