June 2017
Beginner to intermediate
368 pages
8h 31m
English
Remember we specify default roles and permissions in access.php--refer to the section, Installation scripts, earlier in this chapter. Capabilities are reasonably straightforward to understand. Take a look at https://docs.moodle.org/dev/Access_API for an explanation of how we can use the Access API to determine if the current user can, for instance, edit a model (from /view.php):
if ($editing){ require_capability('mod/wavefront:edit', $context);}
With the wavefront module almost complete, now it is time to consider the final steps before release.
Read now
Unlock full access