diff --git a/h5p.classes.php b/h5p.classes.php index 5f8a10a..ddb48b6 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -559,7 +559,15 @@ interface H5PFrameworkInterface { */ public function afterExportCreated(); - public function hasPermission($permission, $content_id = NULL); + /** + * Check if user has permissions to an action + * + * @method hasPermission + * @param [H5PPermission] $permission Permission type, ref H5PPermission + * @param [int] $id Id need by platform to determine permission + * @return boolean + */ + public function hasPermission($permission, $id = NULL); } /**