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

Capability checks for some user profile fields are not consistent between LMS and WebServices

    XMLWordPrintable

Details

    Description

      I noticed this when I wanted to apply MDL-72458 in the app.

      AFAIK in Moodle LMS (browser) the only check to decide if the timezone should be displayed or not is whether it's a hidden field. However, in the WebServices core_user_get_course_user_profiles and core_user_get_users_by_field the capability moodle/user:viewalldetails is checked (and I think hidden fields isn't checked for timezone).

      This means that, for example, in browser as a student I can see another user's timezone but in the app as a teacher I can't. These checks should be more consistent to be able to have a consistent experience between LMS and the app.

      Attachments

        Issue Links

          Activity

            People

              rodrigo.mady@moodle.com Rodrigo Mady
              dpalou Dani Palou
              Rodrigo Mady Rodrigo Mady
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              CiBoT CiBoT
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Juan Leyva, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Apr/23

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 43 minutes
                  1d 43m