Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      35787

      Description

      In 1.9 we can not say easily that somebody may visit course, but does not actually participate in it. The capability moodle/course:view is used for both

      • the user can view the course
      • the user can participate in the course

      In 2.0, a new capability moodle/course:participate can be used to explicitly specify the second (ie actual enrolment in a course).

      Normal users in a course would have both. Users like managers and so on who just need to see the course would only have "view".

      We can get rid of the old hidden role assignments field completely.

        Activity

        Petr Škoda created issue -
        Hide
        Martin Dougiamas added a comment -

        If we have a new course_participants table to keep track of participants enrolled in courses (http://docs.moodle.org/en/Development:Enrolment_rewrite_and_role_tweaks_proposal#New_course_participants_database_table), do we really need a new moodle/course:visit capability? Isn't it enough to keep using moodle/course:view for actual user capabilities?

        Show
        Martin Dougiamas added a comment - If we have a new course_participants table to keep track of participants enrolled in courses ( http://docs.moodle.org/en/Development:Enrolment_rewrite_and_role_tweaks_proposal#New_course_participants_database_table ), do we really need a new moodle/course:visit capability? Isn't it enough to keep using moodle/course:view for actual user capabilities?
        Hide
        Petr Škoda added a comment -

        Tn theory yes, but it would make the upgrade a lot more harder and I thought ppl might be confused because the meaning of course:view would be changed completely.

        Show
        Petr Škoda added a comment - Tn theory yes, but it would make the upgrade a lot more harder and I thought ppl might be confused because the meaning of course:view would be changed completely.
        Hide
        Martin Dougiamas added a comment -

        Updated the title of this bug to reflect current status (see parent issue for patch)

        Show
        Martin Dougiamas added a comment - Updated the title of this bug to reflect current status (see parent issue for patch)
        Martin Dougiamas made changes -
        Field Original Value New Value
        Summary New capability moodle/course:visit New capability moodle/course:participate
        Description In 1.9 we can not say easily that somebody may visit course, but does not actually participate in it. This new capability is designed for inspectors, managers, etc. and is supposed to replaced the "hidden role assignment" workaround. In 1.9 we can not say easily that somebody may visit course, but does not actually participate in it. The capability moodle/course:view is used for both
        * the user can view the course
        * the user can participate in the course

        In 2.0, a new capability moodle/course:participate can be used to explicitly specify the second (ie actual enrolment in a course).

        Normal users in a course would have both. Users like managers and so on who just need to see the course would only have "view".

        We can get rid of the old hidden role assignments field completely.
        Hide
        Petr Škoda added a comment -

        done

        Show
        Petr Škoda added a comment - done
        Petr Škoda made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Martin Dougiamas made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        QA Assignee nobody
        Martin Dougiamas made changes -
        Workflow jira [ 35302 ] MDL Workflow [ 63915 ]
        Martin Dougiamas made changes -
        Workflow MDL Workflow [ 63915 ] MDL Full Workflow [ 93173 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: