Closed (fixed)
Project:
CCK Autocomplete
Version:
6.x-1.1
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2009 at 14:04 UTC
Updated:
11 Apr 2009 at 23:40 UTC
Hi,
So the module works great when I'm logged in as the admin, but when I login with a none admin account the fields don't seem to show up as auto complete fields, but a basic text field.
I feel like this has to be an issue with user access, but I can't seem to figure out if I'm not setting something in the permissions. Or of the user just doesn't have access to know about the autocomplete in general.
Thanks,
Tristan
Comments
Comment #1
archard commentedThe AJAX callback fails when one of the following permissions are not set: create [content type] content, edit any [content type] content, or edit own [content type] content.
What I didn't take into account was if neither of these permissions are set but 'administer nodes' was set, which is what I did to reproduce the error.
The issue is now fixed in the latest release.
Comment #2
tristanmatthews commentedThanks Arcard,
But is seems to be a weird issue on my end.
So I'm adding the field to a custom content type that I introduce through a module (I want to use the auto complete on the title field so I need to get ride of it and then add it). I then set all the permissions right and it still doesn't work.
I was fairly sure that I was doing permissions wrong so I tried it with a content type from "pro drupal development". If you feel like trying it the code is from chapter 7 http://www.drupalbook.com/node/2 Be sure to get ride of the template so that the added field shows up.
I'll keep looking to see if the problem is on there end or something.
Tristan
Comment #3
archard commentedSince you're creating your content type through a module, you set the permission strings in hook_perm yourself, right? Well make sure they follow the pattern:
'create [content type] content'
'edit own [content type] content'
'edit any [content type] content'
the module will look for permission strings that follow that pattern. The example you showed me doesn't follow that pattern and therefore the autocomplete will fail.
Comment #4
tristanmatthews commentedWorks perfect now, thanks!