Skip to content
This repository was archived by the owner on Jan 30, 2018. It is now read-only.

Hide people's data exports #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/controllers/teambox_datas_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def index
end

def show
head(:forbidden) and return unless @data.downloadable?(current_user)

respond_to do |f|
if @data.type_name == :import and @data.need_data? and @data.data == nil
@data.status_name = :uploading
Expand Down