ISAE-SUPAERO-IDEA / moodle-report_hybridmeter

GNU General Public License v3.0
1 stars 0 forks source link

non-standard capability checks #4

Closed danmarsden closed 2 months ago

danmarsden commented 2 months ago

https://github.com/ISAE-SUPAERO-IDEA/moodle-report_hybridmeter/blob/master/index.php#L43

you should really be using the api call "require_capability" instead of your has_capability || die() calls across the codebase. It's too easy to get wrong.