Correction issue 4
Correction issue 4

The capabilities are being checked in the functions of locallib.php
file, called by lib.php file and consequently called by ajax.php file.
So the has_capabilities function was not being used.

leorenis/icontent,leorenis/icontent,leorenis/icontent