Add hasPermission documentation to alterPermissions doc block

Closes #3612399

Merge request reports

Loading