LPS-40597 Added upgrade for permissions and permission checking for portlet view state