Fixed an issue where non-super PostgreSQL users are not able to terminate their own connections from dashboard. #6836

This commit is contained in:
Aditya Toshniwal
2023-10-11 13:43:31 +05:30
parent 2b8efc6361
commit e22492ad51
3 changed files with 5 additions and 1 deletions
@@ -192,7 +192,10 @@ export default function FormView({
depListener.addDepListener(accessPath.concat(field.id), accessPath.concat(field.id), field.depChange, field.deferredDepChange);
}
(evalFunc(null, field.deps) || []).forEach((dep)=>{
// when dep is a string then prepend the complete accessPath
let source = accessPath.concat(dep);
// but when dep is an array, then the intention is to provide the exact accesspath
if(_.isArray(dep)) {
source = dep;
}