sc_menu_delete did not work

Hello,

I have two user groups. First, admin and Second is school.

I am using sc_menu_delete to delete(hide) certain menu based user group login.

if([user_group]==‘admin’){
sc_menu_delete(item_1);
}
else {
sc_menu_delete(item_2);
}

If admin user group logged in, the macro delete/hide menu item_1 (yes it works as I want.)

But when school user group logged in, the menu item_2 keep showing up and menu item_1 did not show up.

I have activate Security in MyScriptcase option and also cleaned browser cache.

I hope someone could give me a hint.

Thank You.
BestRegards
​Subhan

Try:


sc_reset_menu_delete();

<your code>

1 Like

For a couple of hours I was paralyzed after it worked for me too: sc_reset_menu_delete ();