Removed edit/delete buttons for published documents, and bugfixed CanCan abilities