update
This commit is contained in:
@@ -53,7 +53,7 @@ def display_note(note, definition=None):
|
||||
# Only remove an exact registered scope description consisting solely of access
|
||||
# mechanics. Descriptions containing business limitations remain untouched.
|
||||
scope = (definition or {}).get('scope_description', '')
|
||||
if scope and re.fullmatch(r'[^;。\n]*(?:权限|数据范围|DataScope)[。]?', scope) and not any(
|
||||
if scope and re.fullmatch(r'[^;。\n]*(?:权限|数据范围|授权范围|DataScope)[。]?', scope) and not any(
|
||||
word in scope for word in ('仅', '不包含', '不等于', '未', '不能', '只', '除')
|
||||
):
|
||||
text = text.replace(scope, '')
|
||||
|
||||
Reference in New Issue
Block a user