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

Cannot mark messages or notifications as read

XMLWordPrintable

    • MOODLE_405_STABLE

      We try to integrate Moodle in our Dashboard tool for central management. The integration is based on Webservice via REST protocol. We can read all unread notifications of an user via wsfunction core_message_get_messages and parameter useridto, type = notifications and read = 0.

      Now we would like to mark this notifications as read with wsfunction core_message_mark_notification_read with given notificationid and no timeread parameter. This results in an error message: Invalid notificationid, you don't have permissions to mark this notification as read

      {
          "exception": "invalid_parameter_exception",
          "errorcode": "invalidparameter",
          "message": "Ungültiger Parameterwert",
          "debuginfo": "Invalid notificationid, you don't have permissions to mark this notification as read"
      }
      

      It seems this is working by design, e.g. https://moodle.org/mod/forum/discuss.php?d=429680.

      Is there any chance to enhance this for marking notifications external as read. The reasons should be:

      • The webservice has permission to read all notifications
      • The webservice can mark ALL notifications as read as once with wsfunction core_message_mark_all_notifications_as_read (passing useridto). Therefore it should also be possible to mark only one as read.

            Unassigned Unassigned
            thomas.joscht Thomas Joscht
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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