Reported by Aurian Noreinor at http://drupal.org/node/82394#comment-154740
In my drupal site only the main user (first account created) can create events with timeslots.
Other users get the link to create it in the "Create Content" menu in the sidebar. However, when they click on it the "node/add/volunteer_timeslots" shows up in the address bar, but the "node/add" page only loads. Also the "node/add page" does not contain the link to create the volunteer event.Has anyone ever had this problem? I have enabled all access rights for this module for all user roles, but it still doesn't work.
Aurian
I confirmed this and it seems to be due to a typo in function volunteer_timeslots_access.
I had:
if ($op == 'create') {
return user_access('create volunteer event');
}
However the permission is 'create volunteer events', so the code shoud be:
if ($op == 'create') {
return user_access('create volunteer events');
}
patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fix_vt_hook_access_1.diff | 793 bytes | pwolanin |
Comments
Comment #1
pwolanin commentedpatch attached
Comment #2
pwolanin commentedpatch seems to solve the issue- committed the change.
Comment #3
pwolanin commented