change toggleSubstream permission to view instead of edit

upgrade-sftp-uploader
Moe 2022-08-08 07:18:17 -07:00
parent c4627b3c62
commit 73cc0a0e83
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ module.exports = function(s,config,lang,app,io){
} = s.checkPermission(user)
if(
isRestrictedApiKey && apiKeyPermissions.control_monitors_disallowed ||
isRestricted && !monitorPermissions[`${monitorId}_monitor_edit`]
isRestricted && !monitorPermissions[`${monitorId}_monitors`]
){
response.msg = user.lang['Not Permitted']
}else{