Shortcut has_cap and fix requirements for moodle