Capabilities/block/template:edit
From MoodleDocs
This page requires deletion. Please use the page comments if necessary to state the reason for deletion.
This allows a user to edit templates.
This capability is allowed for the default administrator role.