temp fix for "forEach" bug

This is a temporary fix for the "Cannot read properties of undefined (reading 'forEach')" bug. This will be fixed in a better way in v3.4.0
This commit is contained in:
Jasper
2023-04-30 12:11:31 +02:00
committed by GitHub
parent 739ad81f3f
commit ada5ea0c5d
+2
View File
@@ -136,6 +136,7 @@ module.exports = () => {
* @type {String[]}
*/
const readonlyTicketadmin = currentTicketOptions.readonlyAdminroles
if (readonlyTicketadmin){
readonlyTicketadmin.forEach((role,index) => {
if (!config.adminRoles.includes(role) && !currentTicketOptions.adminroles.includes(role)){
try {
@@ -151,6 +152,7 @@ module.exports = () => {
}catch{}
}
})
}
//add member role
if (config.system.memberRole && ![" ","0","false","null","undefined"].includes(config.system.memberRole)){