@aviran - look in www\views\default\canvas\layouts\widgets.php
The function you're looking for is "toggle_customize_edit_panel" - it's included in three places in that file. If you comment these out, it should remove the "Edit page" link from your users profiles.
Keep in mind that although it looks like you're rediredcted to a new page, the Edit page link simply triggers a bunch of JS to expand an edit widgets function that is preloaded with the profile page.
thanks
thanks :D
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.