File tree Expand file tree Collapse file tree
src/components/shared/modals Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -488,13 +488,6 @@ export const AccessPolicyTable = <T extends AccessPolicyTabFormikProps>({
488488 ) /* <!-- Role --> */
489489 }
490490 </ th >
491- < th className = "fit" >
492- {
493- t (
494- "EVENTS.EVENTS.DETAILS.ACCESS.ACCESS_POLICY.READ" ,
495- ) /* <!-- Read --> */
496- }
497- </ th >
498491 < th className = "fit" >
499492 {
500493 t (
@@ -571,31 +564,6 @@ export const AccessPolicyTable = <T extends AccessPolicyTabFormikProps>({
571564 </ td >
572565
573566 { /* Checkboxes for policy.read and policy.write */ }
574- < td className = "fit text-center" >
575- < Field
576- type = "checkbox"
577- name = { `policies.${ formik . values . policies . findIndex ( p => p === policy ) } .read` }
578- disabled = {
579- transactions . read_only ||
580- ! hasAccess (
581- editAccessRole ,
582- user ,
583- ) ||
584- ( aclDefaults && aclDefaults [ "read_readonly" ] !== "false" )
585- }
586- className = { `${
587- transactions . read_only
588- ? "disabled"
589- : "false"
590- } `}
591- onChange = { ( read : React . ChangeEvent < HTMLInputElement > ) =>
592- replace ( formik . values . policies . findIndex ( p => p === policy ) , {
593- ...policy ,
594- read : read . target . checked ,
595- } )
596- }
597- />
598- </ td >
599567 < td className = "fit text-center" >
600568 < Field
601569 type = "checkbox"
@@ -690,7 +658,7 @@ export const AccessPolicyTable = <T extends AccessPolicyTabFormikProps>({
690658 { ! transactions . read_only &&
691659 hasAccess ( editAccessRole , user ) && (
692660 < tr >
693- < td colSpan = { 5 } >
661+ < td colSpan = { 4 } >
694662 < ButtonLikeAnchor
695663 onClick = { ( ) =>
696664 push ( createPolicy ( "" , isUserTable ) )
You can’t perform that action at this time.
0 commit comments