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.

CommentFileSizeAuthor
#1 fix_vt_hook_access_1.diff793 bytespwolanin

Comments

pwolanin’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new793 bytes

patch attached

pwolanin’s picture

Status: Reviewed & tested by the community » Fixed

patch seems to solve the issue- committed the change.

pwolanin’s picture

Status: Fixed » Closed (fixed)