MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / validate_access

Method validate_access

keepercommander/recordv3.py:1798–1807  ·  view source on GitHub ↗
(params: KeeperParams, ruid: str)

Source from the content-addressed store, hash-verified

1796
1797 @staticmethod
1798 def validate_access(params: KeeperParams, ruid: str):
1799 if ruid:
1800 v3_enabled = False
1801 if params and params.settings and isinstance(params.settings.get('record_types_enabled'), bool):
1802 v3_enabled = params.settings.get('record_types_enabled')
1803 if not v3_enabled:
1804 if params and params.record_cache and ruid in params.record_cache:
1805 rv = params.record_cache[ruid].get('version') or None
1806 if rv and rv in (3, 4):
1807 raise TypeError('Record ' + ruid + ' not found. You don\'t have Record Types enabled.')
1808
1809 @staticmethod
1810 def custom_options_to_list(options_list: str) -> list:

Callers 1

executeMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected