Hello
F.e. you could do the following:
Instead of
return session['Login.description'].split(',').indexOf(name) >= 0;
call
var tables = session['Login.description'].split(',');
return (tables.indexOf(name) >= 0) || (tables.indexOf(name + '-RW') >= 0);
Regards