Joseph,
Thank you so much for this. I tweaked the code slightly in pagelib.php [I'm running 1.8] as suggested and got it to work.
Thanks for this. you are a life saver
Roles and permissions
Remove "Edit this Page" button from My Moodle page
This discussion has been locked so you can no longer reply to it.