Skip to content

Commit 9f349f0

Browse files
allow root for add-new per default
1 parent 211b5af commit 9f349f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/webfrontend/CustomDataTypeDante.coffee

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ class CustomDataTypeDANTE extends CustomDataTypeWithCommons
8282
if @getCustomSchemaSettings()?.insert_allowed?.value == true
8383
if @getCustomSchemaSettings()?.insert_username?.value != '' && @getCustomSchemaSettings()?.insert_token?.value != ''&& @getCustomSchemaSettings()?.insert_voc_notation?.value != ''
8484
# 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
8887
status
8988

9089
#######################################################################

0 commit comments

Comments
 (0)