<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def user_can_edit_newsitem(user, NewsItem):
 """ Check if the user has permission to edit a particular NewsItem type. """

    for perm in format_perms(NewsItem, ['add', 'change', 'delete']):
        if user.has_perm(perm):
            return True

    return False