Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3589

Forum: owners without authoring rights should be able to filter for user

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.5
    • Fix Version/s: 12.5.4
    • Component/s: Forum tool
    • Labels:
      None

      Description

      In the forum tool the filter for user is only visible if you are allowed to filter (a course owner) and if you have authorung rights. But there are also course owners without authorung rights who have full access to member menagement but can't filter for user.

      This patch fixes that:

      diff --git a/src/main/java/org/olat/modules/fo/ui/ThreadListController.java b/src/main/java/org/olat/modules/fo/ui/ThreadListController.java
      --- a/src/main/java/org/olat/modules/fo/ui/ThreadListController.java
      +++ b/src/main/java/org/olat/modules/fo/ui/ThreadListController.java
      @@ -118,7 +118,7 @@
       			archiveForumButton.setIconLeftCSS("o_icon o_icon-fw o_icon_archive_tool");
       			archiveForumButton.setElementCssClass("o_sel_forum_archive");
       		}
      -		if(securityModule.isUserAllowedAutoComplete(ureq.getUserSession().getRoles()) && foCallback.mayFilterForUser() ) {
      +		if(foCallback.mayFilterForUser() ) {
       			userListButton = uifactory.addFormLink("filter", formLayout, Link.BUTTON_SMALL);
       			userListButton.setIconLeftCSS("o_icon o_icon-fw o_icon_user");
       			userListButton.setElementCssClass("o_sel_forum_filter");
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m