diff --git a/framework/webtools/groovyScripts/entity/EntitySQLProcessor.groovy b/framework/webtools/groovyScripts/entity/EntitySQLProcessor.groovy index b5259b74f89..29fd73f3b00 100644 --- a/framework/webtools/groovyScripts/entity/EntitySQLProcessor.groovy +++ b/framework/webtools/groovyScripts/entity/EntitySQLProcessor.groovy @@ -26,6 +26,9 @@ import java.util.Iterator import org.apache.ofbiz.entity.* import org.apache.ofbiz.entity.model.ModelGroupReader +if (!security.hasPermission('ENTITY_MAINT', userLogin)) { + return +} sqlCommand = context.request.getParameter("sqlCommand") resultMessage = "" diff --git a/framework/webtools/groovyScripts/entity/ProgramExport.groovy b/framework/webtools/groovyScripts/entity/ProgramExport.groovy index bb37f42a136..9ac97d64c5c 100644 --- a/framework/webtools/groovyScripts/entity/ProgramExport.groovy +++ b/framework/webtools/groovyScripts/entity/ProgramExport.groovy @@ -29,6 +29,9 @@ import org.codehaus.groovy.control.CompilerConfiguration import org.codehaus.groovy.control.MultipleCompilationErrorsException import org.codehaus.groovy.control.ErrorCollector +if (!security.hasPermission('ENTITY_MAINT', userLogin)) { + return +} String groovyProgram = null recordValues = [] errMsgList = []