Skip to content

Commit

Permalink
Limit feeds to ones that you control closes #139
Browse files Browse the repository at this point in the history
  • Loading branch information
zr2d2 committed Jul 15, 2012
1 parent d9b37e5 commit d136184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/feeds_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def index
end

def moderate
@feeds_with_pending = Feed.all
@feeds_with_pending = Feed.where(:group_id => current_user.groups)
@feeds_with_pending.reject!{|f| not f.pending_contents.count > 0}
auth!(:action => :edit)

Expand Down

0 comments on commit d136184

Please sign in to comment.