Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • 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

      Description

      In 1.9 the permissions depend on all roles user has, but also on role overrides and contexts where roles are assigned. This is very confusing for majority of users. It is not possible to even guess results when user has more than 3 roles.

      The new evaluation uses the same algorithm as other role based systems - first evaluate all roles independently, then verify if user has those roles in given context.

      There are multiple benefits:

      • everybody can simply guess result, it is not necessary to know everything about permissions above current context
      • much, much better performance because we may return result as sql query
      • allows new override UI - simple add/remove roles from overrides

      Spec: http://docs.moodle.org/en/Development:New_permissions_evaluation_in_2.0

        Balsamiq Wireframes

          Attachments

          1. Allowed_roles.bmml
            5 kB
          2. Allowed_roles.bmml
            5 kB
          3. Allowed_roles.bmml
            3 kB
          4. Allowed_roles.bmml
            2 kB
          5. Allowed_roles.png
            Allowed_roles.png
            68 kB
          6. permissions_3.patch
            46 kB

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              skodak Petr Skoda
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10