-
Notifications
You must be signed in to change notification settings - Fork 492
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededneeds-triage
Description
What is the Moodle feature that needs documenting?
versioned_docs/version-5.0/apis/core/reportbuilder
Could you add documentation for security/capability checks please :)
I think to restrict access to a data entity it is the is_available function?
eg: in local/myplugin/classes/reportbuilder/local/entities/mydata.php
public function is_available(): bool {
return has_capability('local/myplugin:viewreport', context_system::instance());
}
Is this documentation specific to a Moodle version?
None
Are you able to provide a patch for this?
None
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededneeds-triage