Skip to content

Commit

Permalink
修复历史记录
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Aug 2, 2015
1 parent f7b256d commit 529afba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tracelogs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def index
if @admin.level == 1
@tracelogs = Tracelog.all
elsif @admin.level == 2
users = User.where("regionid = ?", @admin.id)
users = User.where("regionname = ?", @admin.account)
@tracelogs = Tracelog.where(userid: users)
end
end
Expand Down

0 comments on commit 529afba

Please sign in to comment.