fix(discussion): edit and delete menu items visible on non discussions

a bug in the discussion menu hook could cause to show discussion edit
links on other entities like users