mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Delete extraneous code, custom <String> is operative (#1503)
This commit is contained in:
@@ -179,7 +179,6 @@ def create_access_level():
|
|||||||
caa = build()
|
caa = build()
|
||||||
ap_name = get_access_policy(caa)
|
ap_name = get_access_policy(caa)
|
||||||
title = sys.argv[3].replace(' ', '_')
|
title = sys.argv[3].replace(' ', '_')
|
||||||
custom = {'expr': {'expression': sys.argv[4], 'title': 'expr'}}
|
|
||||||
allowed_title_chars = string.ascii_letters + string.digits + '_'
|
allowed_title_chars = string.ascii_letters + string.digits + '_'
|
||||||
name = ''.join([c for c in title if c in allowed_title_chars])[:49]
|
name = ''.join([c for c in title if c in allowed_title_chars])[:49]
|
||||||
name = f'{ap_name}/accessLevels/{name}'
|
name = f'{ap_name}/accessLevels/{name}'
|
||||||
|
|||||||
Reference in New Issue
Block a user