mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Exclude user_id from projects, contexts and notes xml. My rationale here is that if tracks is a multi-user application, user_id is always set by authenticated credentials and so there is no valid reason to expose it with the data.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@259 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
abbed6b376
commit
7b984328e3
3 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ class ContextController < ApplicationController
|
|||
@page_title = "TRACKS::List Contexts"
|
||||
respond_to do |wants|
|
||||
wants.html
|
||||
wants.xml { render :xml => @contexts.to_xml }
|
||||
wants.xml { render :xml => @contexts.to_xml( :except => :user_id ) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class NoteController < ApplicationController
|
|||
@page_title = "TRACKS::All notes"
|
||||
respond_to do |wants|
|
||||
wants.html
|
||||
wants.xml { render :xml => @all_notes.to_xml }
|
||||
wants.xml { render :xml => @all_notes.to_xml( :except => :user_id ) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ProjectController < ApplicationController
|
|||
@page_title = "TRACKS::List Projects"
|
||||
respond_to do |wants|
|
||||
wants.html
|
||||
wants.xml { render :xml => @projects.to_xml }
|
||||
wants.xml { render :xml => @projects.to_xml( :except => :user_id ) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue