AJAX search by author name works fine as superuser (user/1) and other roles I defined.
However, AJAX search by author name doesn't work for any role that doesn't have the permission 'admin cmf module'. By comparison, the 'search by author list' works just fine for that role.
I would have expected that users can use both 'search by author list' and 'search by author name' equally, as long as they have the permissions 'view user content list' and 'filter and manage site content'.
On a side note, this made me wonder what the permission 'admin cmf module' is used for in the first place. See separate support request: #501900.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | incremental-search_drupal-project-cmf-1.png | 81.06 KB | pips1 |
| #6 | incremental-search_drupal-project-cmf_role-site-architect-1.png | 88.81 KB | pips1 |
| #5 | cmf_1.jpg | 68 KB | nancydru |
Comments
Comment #1
nancydruThe latest -dev code no longer has 'admin cmf module' and I am unable to reproduce this problem. If you can, please, confirm that this is no longer an issue, then mark this issue "fixed."
Comment #2
pips1 commentedI see that 'admin cmf module' is now gone in permissions. Ok, fine, if that didn't do anything in the first place. :-)
However, the "live search" (AJAX search) for 'title/subject' (new feature of 6.x-1.7) and 'user name' still only works for the superuser (/user/1). For any other (custom created) role, I don't get any available node titles / user names listed by the live search...
For comparison, I tested the live search of the cck nodereference with those roles, and the live search works just fine.
Can anyone reproduce this at all?
Comment #3
pips1 commentedComment #4
pips1 commentedI just discovered that live search for 'title/subject' (new feature of 6.x-1.7) doesn't work with the superuser role either.
(However, the 'user name' works for the superuser).
Comment #5
nancydruHere's a picture from my user/3 showing content selected with the "title/subject" filter. And I assure you that I tested it before committing it. BTW, I don't think the "title/subject" filter uses Ajax.
Comment #6
pips1 commentedHi Nancy, thanks for looking into this. Please have a look a the two attached screenshots.
Comment #7
pips1 commentedComment #8
nancydruIn order to use the user/autocomplete function, a user must have the 'access user profiles' permission. So, there are three ways to go here:
I sort of lean towards #2 because of potential security issues, but #1 would not be all that hard to accomplish. While #3 is not hard, I am very concerned about that.
The "title/subject" filter is not an autocomplete. You simply enter a string and the filter will find all nodes/comments with that string.
Comment #9
nancydruChanging title.
Comment #10
nancydruFix committed to 6.x-1.x-dev. Will be ported to 5.x.
I went with option #1, which means that you will need to rebuild the menus (or clear cache).
Comment #11
nancydruCommitted to 5.x-1.x-dev
Comment #12
nancydru