Closed (duplicate)
Project:
Apache Solr Search
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2013 at 15:00 UTC
Updated:
26 Apr 2013 at 13:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
nick_vhThis smells like a duplicate? Have you searched the queue? This is a apachesolr_user problem, not apachesolr main module
Comment #2
raulmuroc commented@Nick_vh,
Do not think so because I am not using apachesolr_user but Apachesolr_search_integration itself and the same problem when searching through Profile2 types. :S
Besides, I wrote in that issue and they told me to open this new one.
Comment #3
lechucks commentedSame error, with both 7 version dev and stable. An user without "Bypass content access control" cant use Solr search.
I think this an important issue. If you want have sorl search active , everybody must edit and delete all documents and i think its a mistake.
UPDATE!!: I fix it.
You need change in /apachesolr/apachesolr_access/apachesolr_access.module
Find
to this
Comment #4
raulmuroc commented@Nick_vh, you had reason. It would be better to have it in the same issue because it seems the solution will be in 'Apachesolr_access' sub-module wich is both used either by 'Users' or 'Profiles'.
@lechucks, your solution loooks promising hence I created a patch and pushed it in: #1665350: Only users with the "Bypass content access control" permission are able to search for users when Apache Solr Access is enabled
P.S: I have just tested the patch and it doesn't seem that solves the problem. Anyway, I would let that community test it better and at least we have a beginning point. Thanks @lechucks for your effort & contribution to Drupa'ls community :-)
Thank you.
Comment #5
lechucks commentedIm using dev version with solr 4 and anybody can search with this modification but cant edit or delete post.
I dont have much knowledge in php but apparently solved the problem for me.
Update: Only solved the problem with Apache Solr Search Integration module, not with Apachesolr User module
Comment #6
raulmuroc commentedIf so then this issue must be considered appart :-D!!!
Patch attached ;)
Comment #7
raulmuroc commented@Lechuck: Thank you!:-) You're right, it works for ApacheSolr Search Integration though not for ApacheSolr Search User.
I confirm this patch worked, at least for me.
I guess there are more confirmations needed to assign the Status as 'Reviewed & Tested by the community".
Comment #9
raulmuroc commentedGo to --> #1665350: Only users with the "Bypass content access control" permission are able to search for users when Apache Solr Access is enabled