Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12544

Roles displayed in the users profile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.8.4, 1.9, 2.0
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      In the user profile roles are always displayed, no matter whether these are hidden role assignments.

      In user/view.php the function get_user_roles_in_context() is called to display all roles a a user in the given (course) context.
      This function implemented in lib/accesslib.php does not check whether the role assignment is hidden or not. Is this a bug or a feature?

        Attachments

          Activity

            People

            Assignee:
            moodle.com moodle.com
            Reporter:
            ghillenb Gisela Hillenbrand
            Tester:
            Dongsheng Cai
            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:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jan/08