Uploaded image for project: 'PUBLIC - Liferay Social Office Community Edition'
  1. PUBLIC - Liferay Social Office Community Edition
  2. SOS-1573

Private restricted sites are not show properly in Sites portlet when a regular user view it.

    Details

    • Fix Priority:
      4

      Description

      Private restricted sites are not show properly in Sites portlet when a regular user view it.

      1. Add Private Restricted site
      2. Add user
      3. Sign in as User

      System fails to list Private Restricted site properly

      1. Click Site Directory

      System fails to list Private Restricted site properly

      Browser Debugger
      AUI().use("aui-base","aui-dialog","aui-io-plugin",function(a){Liferay.namespace("Tasks");Liferay.Tasks={init:function(c){var b=this;b._setupFilter();b._setupTagsPopup();b._setupProgressBar();b._currentTab=c.currentTab;b._taskListURL=c.taskListURL},clearFilters:function(){var b=this;a.all(".tasks-portlet .asset-tag-filter .asset-tag.selected").toggle("selected");var d=a.one(".tasks-portlet .group-filter select");if(d){d.set("value",0)}var c=a.one('.tasks-portlet input[name="all-tasks"]').get("checked");b.updateTaskList(null,c)},closePopup:function(){var b=this;b.getPopup().hide()},displayPopup:function(d,e){var b=this;var f=a.getBody().get("viewportRegion");var c=b.getPopup();c.show();c.set("title",e);c.io.set("uri",d);c.io.start()},getPopup:function(){var b=this;if(!b._popup){b._popup=new a.Dialog({align:{node:null,points:["tc","tc"]},constrain2view:true,cssClass:"tasks-dialog",modal:true,resizable:false,width:600}).plug(a.Plugin.IO,{autoLoad:false}).render()}b._popup.io.set("form",null);b._popup.io.set("uri",null);return b._popup},openTask:function(b){this.displayPopup(b,"Tasks")},toggleCommentForm:function(){var d=a.one(".tasks-dialog .add-comment");var c=d.one(".control");var b=d.one(".form");b.toggle();c.toggle()},toggleTasksFilter:function(){a.one(".tasks-portlet .filter-wrapper").toggle()},updateTaskList:function(c,d){var b=this;b._taskList=a.one(".tasks-portlet .list-wrapper");if(!b._taskList.io){b._taskList.plug(a.Plugin.IO,{autoLoad:false})}if(!c){c=b._taskListURL;var e={assetTagIds:b._getAssetTagIds(),groupId:b._getGroupId(),tabs1:b._currentTab,tabs2:d?"all":"open"};b._taskList.io.set("data",e)}b._taskList.io.set("uri",c);b._taskList.io.start()},_getAssetTagIds:function(){var b=[];a.all(".tasks-portlet .asset-tag-filter .asset-tag.selected").each(function(c,d,e){b.push(c.attr("data-assetTagId"))});return b.join(",")},_getGroupId:function(){var b=a.one(".tasks-portlet .group-filter select");if(!b){return 0}return b.get("value")},_setupFilter:function(){var b=this;a.one(".tasks-portlet .asset-tag-filter").delegate("click",function(e){var c=e.currentTarget;c.toggleClass("selected");var d=a.one('.tasks-portlet input[name="all-tasks"]').get("checked");b.updateTaskList(null,d)},".asset-tag");a.all(".tasks-portlet .group-filter select").on("change",function(d){var c=a.one('.tasks-portlet input[name="all-tasks"]').get("checked");b.updateTaskList(null,c)})},_setupTagsPopup:function(){var b=a.one(".tasks-portlet");b.delegate("mouseover",function(c){c.currentTarget.one(".tags").show()},".tags-wrapper");b.delegate("mouseout",function(c){c.currentTarget.one(".tags").hide()},".tags-wrapper")},_setupProgressBar:function(){var b=this;var c=a.one(".tasks-portlet .list-wrapper");c.delegate("mouseover",function(d){d=d.currentTarget;d.one(".current").hide();d.one(".progress-picker").show()},".progress-wrapper");c.delegate("mouseout",function(d){d=d.currentTarget;d.one(".current").show();d.one(".progress-picker").hide()},".progress-wrapper");c.delegate("mouseover",function(e){e=e.currentTarget;var f=e.getAttribute("class");var g=f.substring(f.indexOf("progress-")+9);var d=e.ancestor(".progress-wrapper");d.one(".new-progress").setStyle("width",g+"%");d.one(".progress-indicator").set("text",g+"% Complete")},".progress-selector a");c.delegate("click",function(e){e.halt();var d=e.currentTarget.getAttribute("href");b.updateTaskList(d)},".progress-selector a")}}});
      

        Attachments

          Activity

            People

            • Assignee:
              benjamin.yeh Benjamin Yeh (Inactive)
              Reporter:
              benjamin.yeh Benjamin Yeh (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 31 weeks, 3 days ago