| 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: |