Allow searching for subscriptions from other users (public only)
Related to #1323
This commit is contained in:
@@ -15,8 +15,8 @@ class TagSubscriptionsController < ApplicationController
|
||||
|
||||
def index
|
||||
@user = CurrentUser.user
|
||||
@search = TagSubscription.owned_by(@user).order("name").search(params[:search])
|
||||
@tag_subscriptions = @search.paginate(params[:page], :limit => params[:limit])
|
||||
@query = TagSubscription.order("name").search(params[:search])
|
||||
@tag_subscriptions = @query.paginate(params[:page], :limit => params[:limit])
|
||||
respond_with(@tag_subscriptions)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user