Under Drupal 6.2, the menu paths created by flickr_tags are inaccessible because they don't have access attributes set. Going to any flickr_tags path (flickr/%user/tags, flickr/%user/tags/cloud, flickr/%user/tags/list, flickr/%user/tags/%flickr_tag) results in an "access denied" page--even as uid 1.

I'm attaching a patch that adds the same access attributes as the flickr.module menu items. Hope this helps!

before:

  $items['flickr/%user/tags'] = array(
    'title' => 'Tags',
    'description' => 'Flickr main tag cloud page',
    'type' => MENU_LOCAL_TASK, 
    'page callback' => 'flickr_tags_cloud',
    'page arguments' => array(1),
  );

after:

  $items['flickr/%user/tags'] = array(
    'title' => 'Tags',
    'description' => 'Flickr main tag cloud page',
    'type' => MENU_LOCAL_TASK, 
    'page callback' => 'flickr_tags_cloud',
    'page arguments' => array(1),
    'access callback' => 'flickr_photos_access',
    'access arguments' => array(1),
  );

Comments

grendzy’s picture

StatusFileSize
new1.16 KB

I had the same problem with flickr_sets_menu(). Here's another patch.

drewish’s picture

StatusFileSize
new764 bytes

the tasks shouldn't need the access arguments...

Anonymous’s picture

Assigned: Unassigned »
Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

Patches flickr_tags_menu.patch and flickr_269373.patch have been reviewed , tested and committed.

Thanks Paul

Anonymous’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)