File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,6 @@ impl<KV: kvapi::KVApi<Error = MetaError>> DatamaskApi for KV {
6666 name_ident. tenant ( ) . clone ( ) ,
6767 name_ident. data_mask_name ( ) . to_string ( ) ,
6868 ) ;
69- if self . get_pb ( & row_access_name_ident) . await ?. is_some ( ) {
70- return Ok ( Err (
71- name_ident. exist_error ( "name conflicts with an existing masking policy" )
72- ) ) ;
73- }
7469
7570 let masking_policy_id = fetch_id ( self , IdGenerator :: data_mask_id ( ) ) . await ?;
7671
Original file line number Diff line number Diff line change @@ -65,11 +65,6 @@ impl<KV: kvapi::KVApi<Error = MetaError>> RowAccessPolicyApi for KV {
6565 name_ident. tenant ( ) . clone ( ) ,
6666 name_ident. row_access_name ( ) . to_string ( ) ,
6767 ) ;
68- if self . get_pb ( & mask_name_ident) . await ?. is_some ( ) {
69- return Ok ( Err (
70- name_ident. exist_error ( "name conflicts with an existing masking policy" )
71- ) ) ;
72- }
7368
7469 let row_access_id = fetch_id ( self , IdGenerator :: row_access_id ( ) ) . await ?;
7570 let policy_id = RowAccessPolicyId :: new ( row_access_id) ;
You can’t perform that action at this time.
0 commit comments