Delete extraneous code, custom <String> is operative (#1503)

This commit is contained in:
Ross Scroggs
2022-04-07 18:12:37 -07:00
committed by GitHub
parent a5eb61421d
commit d8e84cf045

View File

@@ -179,7 +179,6 @@ def create_access_level():
caa = build()
ap_name = get_access_policy(caa)
title = sys.argv[3].replace(' ', '_')
custom = {'expr': {'expression': sys.argv[4], 'title': 'expr'}}
allowed_title_chars = string.ascii_letters + string.digits + '_'
name = ''.join([c for c in title if c in allowed_title_chars])[:49]
name = f'{ap_name}/accessLevels/{name}'