Refactor more duplicate code

the BackendGroupsActionAdd::insertPermissions and
BackendGroupsActionsEdit::updatePermissions where exactly the same.