~[if#gate.pref.busnotes_teacher~(curschoolid)=read]
~[text:nicktech.busnotes.admin.editpage.Not_Permitted]
[else#gate]
~[if#gate2.pref.busnotes_teacher~(curschoolid)=hide]
~[text:nicktech.busnotes.admin.editpage.Not_Permitted]
[else#gate2]
~[wc:editBusNote]
[/if#gate2]
[/if#gate]