tag subscription listing limited to current user

This commit is contained in:
albert
2013-02-17 15:25:21 -05:00
parent b7d7954126
commit 327ad8fbb6
2 changed files with 5 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ class TagSubscriptionsController < ApplicationController
def index
@user = CurrentUser.user
@search = TagSubscription.visible_to(@user).search(params[:search])
@search = TagSubscription.owned_by(@user).search(params[:search])
@tag_subscriptions = @search.paginate(params[:page])
respond_with(@tag_subscriptions)
end