File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,8 @@ class CustomDataTypeDANTE extends CustomDataTypeWithCommons
82
82
if @ getCustomSchemaSettings ()? .insert_allowed ? .value == true
83
83
if @ getCustomSchemaSettings ()? .insert_username ? .value != ' ' && @ getCustomSchemaSettings ()? .insert_token ? .value != ' ' && @ getCustomSchemaSettings ()? .insert_voc_notation ? .value != ' '
84
84
# check system_right
85
- if ez5 .session .hasSystemRight (" plugin.custom-data-type-dante.dante_plugin" , " dante_allow_add_records" )
86
- if ez5 .session .system_rights ? [' plugin.custom-data-type-dante.dante_plugin' ]? [' dante_allow_add_records' ] == true
87
- status = true
85
+ if ez5 .session .hasSystemRight (" plugin.custom-data-type-dante.dante_plugin" , " dante_allow_add_records" ) || ez5 .session .hasSystemRight (" system.root" )
86
+ status = true
88
87
status
89
88
90
89
# ######################################################################
You can’t perform that action at this time.
0 commit comments