File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
framework/webtools/groovyScripts/entity Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ import java.util.Iterator
2626import org.apache.ofbiz.entity.*
2727import org.apache.ofbiz.entity.model.ModelGroupReader
2828
29+ if (! security. hasPermission(' ENTITY_MAINT' , userLogin)) {
30+ return
31+ }
2932sqlCommand = context. request. getParameter(" sqlCommand" )
3033
3134resultMessage = " "
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ import org.codehaus.groovy.control.CompilerConfiguration
2929import org.codehaus.groovy.control.MultipleCompilationErrorsException
3030import org.codehaus.groovy.control.ErrorCollector
3131
32+ if (! security. hasPermission(' ENTITY_MAINT' , userLogin)) {
33+ return
34+ }
3235String groovyProgram = null
3336recordValues = []
3437errMsgList = []
You can’t perform that action at this time.
0 commit comments