I am trying to make a variation of manage.php that shows assessments(I know there is a grade section already but I plan to make statistical graphs). My problem is that I don't quiet understand the following lines:
$allowtake = has_capability('mod/attforblock:takeattendances', $context);
$allowchange = has_capability('mod/attforblock:changeattendances', $context);
$allowmanage = has_capability('mod/attforblock:manageattendances', $context);
Am I right in saying that the capabilities are defined in access.php and that they only give defined users permission to take,change and manage attendance? And if so would you agree that the same permissions should be given for grading student's assessments?
Any help would really be appreciated.
As a little side note, I have not been using the get_string method when I am using a new word, i.e I just write the word in single quotation marks. What are the implications of this?
Thanks,
Deborah