ipeychev/liferay-portal — pull request #67 by epgarcia (2012-06-25 11:38:24+00:00)
Title: LPS-28085 Different permission requirements at Manage Pages and Navigati...

As described in ticket LPS-28085, permissions were not working the same in Manage-Pages and Navigation. When building navigation at navigation.js, the variable hasPermission is being checked (apart from the corresponding permission) to make nav items deletable, updateable or shortable. This variable is set at bottom_js.jspf based on the MANAGE_LAYOUT permission of the current user. However, at layouts_admin/edit_layout.jsp this permission is not checked for the same actions.

I consider that hasPermission is no longer necessary, since we already check delete/update permissions for every item at navigation.

I've also modified the _makeEditable function at navigation.js so that only items with class selected AND lfr-nav-updateable can be edited with double-click.