Skip to content

Missing capabilities validation #77

@volodymyrdovhan

Description

@volodymyrdovhan

Hello,
I noticed that some files, like view.php, and others are missing the capabilities validation.
The require_login($course, false, $cm); validates only the enrollment in a course, but not the access and permissions on a specific course module.

Please revisit the plugin and improve security with the capability validation.

As an example, this is a simple capability validation on the mod/page activity:
https://github.com/moodle/moodle/blob/9addea9f0ace94e228329a93df80afaa76fee3e0/mod/page/view.php#L52

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions