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

Extend expert rules to check for user role in all courses

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.5.3
    • Fix Version/s: 10.5.4
    • Component/s: Course
    • Labels:
      None
    • Funded by:

      Description

      In courses we can ask for user membership type in that course, however for some settings it is necessary to know if the user is a learner, a coach or an admin/author based on all courses.

      The already existing expert rules should be extended to implement this queries if the correct parameter is passed. The queries are the same as the ones in the user management:

      isCourseAdministrator(ANY_COURSE)
      
      isCourseCoach(ANY_COURSE)
      
      isCourseParticipant(ANY_COURSE)
      

      The ANY_COURSE variable should resolve to the string "any" at runtime.

      ToDo

      • Add the ANY_COURSE variable
      • For the three existing functions check the parameter.
      • If the parameter is an interger (usually 0 or 1), query for current course memberhsip
      • If the parameter is ANY_COURSE, query for general memberships (see user management)
      • Update manual, add examples

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            gnaegi Florian Gnägi
            Tester:
            Florian Gnägi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 15 minutes Time Not Required
                3h 15m