Capabilities/mod/assign:editothersubmission
From MoodleDocs
This capability allows a teacher to edit or delete student submissions.
This capability is not set for any role.
It must be set to 'Allow' by the administrator after careful consideration of possible consequences.