Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1320

Use the new WS mod_forum_can_add_discussion for filtering the list of groups where a user can post

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Forum add-on
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a forum with visible groups.
      2. Add a student and a teacher to some groups (not all of them).
      3. In the app, check that the student can only see the groups he belongs to when adding a new discussion.
      4. In the app, check that the teacher can see all the groups when adding a new discussion.
      Show
      Create a forum with visible groups. Add a student and a teacher to some groups (not all of them). In the app, check that the student can only see the groups he belongs to when adding a new discussion. In the app, check that the teacher can see all the groups when adding a new discussion.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE

      Description

      mod_forum_can_add_discussion can be used to check the groups a user can post, it will be specifically intending for checking the site:accessallgroups capability case (passing a -1 value for the groupid will check that capability, it should be used only when the activity is using groups)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Juan Leyva
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                29/Dec/15