WIDE-Services / ws_block_course_statistics_u

0 stars 0 forks source link

Missing Context and Capability Validation in External Service #4

Open volodymyrdovhan opened 1 day ago

volodymyrdovhan commented 1 day ago

Hello, I found an issue with missing capabilities and context validation in the external services.

Please review the documentation for more details: Context and Capability Checks - Moodle External Services

dorispanos commented 22 hours ago

im starting to believe that i have uploaded an old version of the plugin for you to review. This was fixed image I believe this is the correct way.

volodymyrdovhan commented 9 hours ago
  1. Please move classes/local/external to classes/external as it is part of the core modules.
  2. Please add self::validate_context($context); for context validation to class pause_measure(): image