brianchandotcom/liferay-portal — pull request #3612 by holatuwol (2012-01-06 01:10:30+00:00)
Title: LPS-24661

Problem is that we use the control panel layout rather than the current scope group to see if a user has the ability to access edit mode, so fix it by passing in the scope group and a null layout when inside the control panel and leave the logic alone when on a non control panel layout.