Merge branch 'develop' into tvw
This commit is contained in:
commit
d673172abf
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ class MapsController < ApplicationController
|
|||
elsif m.category == "Topic"
|
||||
object = m.topic
|
||||
end
|
||||
object.permission == "private" && (!authenticated? || (authenticated? && @current.id != object.user_id))
|
||||
!object || (object.permission == "private" && (!authenticated? || (authenticated? && @current.id != object.user_id)))
|
||||
}
|
||||
|
||||
respond_with(@allmappers, @allmappings, @allsynapses, @alltopics, @map)
|
||||
|
@ -115,7 +115,7 @@ class MapsController < ApplicationController
|
|||
elsif m.category == "Topic"
|
||||
object = m.topic
|
||||
end
|
||||
object.permission == "private" && (!authenticated? || (authenticated? && @current.id != object.user_id))
|
||||
!object || (object.permission == "private" && (!authenticated? || (authenticated? && @current.id != object.user_id)))
|
||||
}
|
||||
|
||||
@json = Hash.new()
|
||||
|
|
Loading…
Reference in a new issue