PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-20872

There was not Add Blog Entry button in control panel when the user have add blog entry permission.

    Details

    • Similar Issues:
      Show 5 results 

      Description

      Reproduce as following steps:
      1. add Blog portlet;
      2. add a new user and join in liferay.com site;
      3.go to control panel -> Roles,click action near Site Member,choose define permissions;
      4. add permissions Add Entry and Access in Control Panel;
      5.back to liferay.com and add
      6. login in as the new user,go to control panel -> Blog;
      There was not Add Blog Entry button.

        Activity

        Hide
        Stefan Andersson added a comment -

        In file toolbar.jsp /portal/trunk/portal-web/docroot/html/portlet/blogs_admin/toolbar.jsp

        This permission check always fails:
        <c:if test="<%= PortalPermissionUtil.contains(permissionChecker, ActionKeys.ADD_ENTRY) %>">

        I have change it to :
        <c:if test="<%= BlogsPermission.contains(permissionChecker, scopeGroupId, ActionKeys.ADD_ENTRY) %>">

        After this, users can add new blog entries in there site. Not sure if this are a correct fix but it works for me.

        Show
        Stefan Andersson added a comment - In file toolbar.jsp /portal/trunk/portal-web/docroot/html/portlet/blogs_admin/toolbar.jsp This permission check always fails: <c:if test="<%= PortalPermissionUtil.contains(permissionChecker, ActionKeys.ADD_ENTRY) %>"> I have change it to : <c:if test="<%= BlogsPermission.contains(permissionChecker, scopeGroupId, ActionKeys.ADD_ENTRY) %>"> After this, users can add new blog entries in there site. Not sure if this are a correct fix but it works for me.
        Hide
        Michael Saechang added a comment -

        PASSED Manual Testing following the steps in the description.

        Fixed on:
        Tomcat 7.0 + MySQL 5. 6.1.x Revision 90170.

        Show
        Michael Saechang added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0 + MySQL 5. 6.1.x Revision 90170.
        Hide
        Vicki Tsang added a comment -

        This is being bulk closed in preparation for the new workflow.

        Show
        Vicki Tsang added a comment - This is being bulk closed in preparation for the new workflow.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 35 weeks, 1 day ago

              Development

                Structure Helper Panel