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

Exception displayed when accessing messaging or notification preferences with disabled capability

XMLWordPrintable

    • Hide

      This issue only needs to be tested in 1 device.

      1. Disable this capability at system level for authenticated users: moodle/user:editownmessageprofile: Edit own user messaging profile
      2. In the app, login in the site and go to User menu > Preferences.
      3. Open the Messages preferences. Check that you see a warning saying that you don't have permissions to edit. This message is the one returned by LMS, since this is an edge case we decided this message was enough.
      4. Check that you see the setting to "Send on enter" and you can change this. This setting is local for the app, it doesn't affect LMS, that's why you can change it.
      5. Now go back and open Notifications preferences. Check that you see a warning saying that you don't have permissions to edit. This message is the one returned by LMS, since this is an edge case we decided this message was enough.
      6. In LMS as admin, allow the permission to authenticated user again.
      7. In the app, perform a Pull To Refresh. Check that you see the form and not the error (both in Notifications and Messages preferences).
      Show
      This issue only needs to be tested in 1 device. Disable this capability at system level for authenticated users: moodle/user:editownmessageprofile: Edit own user messaging profile In the app, login in the site and go to User menu > Preferences. Open the Messages preferences. Check that you see a warning saying that you don't have permissions to edit. This message is the one returned by LMS, since this is an edge case we decided this message was enough. Check that you see the setting to "Send on enter" and you can change this. This setting is local for the app, it doesn't affect LMS, that's why you can change it. Now go back and open Notifications preferences. Check that you see a warning saying that you don't have permissions to edit. This message is the one returned by LMS, since this is an edge case we decided this message was enough. In LMS as admin, allow the permission to authenticated user again. In the app, perform a Pull To Refresh. Check that you see the form and not the error (both in Notifications and Messages preferences).
    • Moodle Apps - 2024 i3, Moodle Apps - 2024 i3.1, Moodle Apps - 2024 i3.2

      Steps to reproduce:

      • Disable this capability at system level for authenticated users: moodle/user:editownmessageprofile: Edit own user messaging profile
      • Access the user messages or notifications preferences via the user account menu or via messaging -> settings cog
      • An exception is displayed

      Expected behaviour:

      • Do not display the preferences link/cog icon or display a better error message

      Since we do not have an existing WebService to check whether the user can edit or not its preference, to avoid unnecessary WS calls and being this a very edge case the proposed solution is just to capture the error an display a nice message in the new page that will be opened.

            dpalou Dani Palou
            jleyva Juan Leyva
            Alfonso Salces Alfonso Salces
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 17 minutes
                17m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.