function onEdit(e)
{
const sh=SpreadsheetApp.getActiveSheet();
const row = e.range.getRow();
const col = e.range.getColumn();
if(sh.getName()=="IN-OUT" && col==10 && e.value=="TRUE")
{
sh.hideRows(row);
e.source.toast('Row' + row + ' will be hidden now');
}
}
But I checked yours out and it worked correctly to hide the relevant row. I also shared the spreadsheet with another account I have and it worked correctly.
Only thing left that I can think of is if workspace admin restrictions are causing you difficulties. Is this a regular gmail account or a business account?
If it is a managed business account, check with the administrator controls. perhaps something is blocking the execution on those accounts.