Change permission check to edit_document

Change hasPermission call to check for "edit_document" rather than "edit_resource" so that QuickBar will work properly for non-Administrator users.