Skip to content

Commit

Permalink
record-type fix: allow any record-type w/ scope = RT_ENTERPRISE to …
Browse files Browse the repository at this point in the history
…be deleted / modified (synonymous w/ custom record-tpe)
  • Loading branch information
aaunario-keeper committed Apr 1, 2024
1 parent a6efd8d commit 6720f71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions keepercommander/commands/recordv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,8 @@ def execute(self, params, **kwargs):
enterprise_rt_id_max = enterprise_rt_id_min + num_rts_per_scope
is_enterprise_rt = enterprise_rt_id_min < rtid <= enterprise_rt_id_max
real_type_id = rtid % num_rts_per_scope
is_custom_rt = real_type_id > 1000

if not is_enterprise_rt or not is_custom_rt:
if not is_enterprise_rt:
logging.error('Only custom record types can be modified or removed')
return

Expand Down

0 comments on commit 6720f71

Please sign in to comment.