Skip to content

Commit

Permalink
Those two files were still using the constant instead of the method, …
Browse files Browse the repository at this point in the history
…which determines if external submits are allowed or not. See review 326.
  • Loading branch information
Severin Gehwolf authored and Severin Gehwolf committed Jan 11, 2010
1 parent ba31d27 commit 8fca691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/controllers/submissions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ def index

# controller handles transactional submission of files
def update_files
if REPOSITORY_EXTERNAL_SUBMITS_ONLY
raise "MarkUs is only accepting external submits"
end
assignment_id = params[:id]
assignment = Assignment.find(assignment_id)
path = params[:path] || '/'
grouping = current_user.accepted_grouping_for(assignment_id)
if grouping.group.repository_external_commits_only?
raise "MarkUs is only accepting external submits"
end
if !grouping.is_valid?
redirect_to :action => :file_manager, :id => assignment_id
return
Expand Down
2 changes: 1 addition & 1 deletion app/views/submissions/file_manager_populate.rjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if REPOSITORY_EXTERNAL_SUBMITS_ONLY
if @grouping.group.repository_external_commits_only?
page.replace_html 'directories_tbody', :partial => 'submissions/table_row/exit_directory'
end
page.call "populate", @table_rows.to_json

0 comments on commit 8fca691

Please sign in to comment.