sitenotes_menu_alter() assigns the wrong access argument which prevents users whom would be thought to have access to site notes to not be able to add new notes.

Existing code:

function sitenotes_menu_alter(&$callbacks) {
  $callbacks['node/add/sitenotes']['access callback'] = "user_access";
  $callbacks['node/add/sitenotes']['access arguments'] = array("access site notes");
}

Modified code:

function sitenotes_menu_alter(&$callbacks) {
  $callbacks['node/add/sitenotes']['access callback'] = "user_access";
  $callbacks['node/add/sitenotes']['access arguments'] = array("Access site notes");
}

Will have a patch shortly.

Comments

r0nn1ef’s picture

The attached patch was created against 7.x-1.x branch. Tested in my local site using Site Notes and this resolves the issue.

nancydru’s picture

Status: Active » Fixed

Actually, the permission should not be capitalized.

  • NancyDru committed 6ebf3c1 on 7.x-1.x authored by r0nn1ef
    Issue #2277151 by r0nn1ef, NancyDru: Invalid access argument
    

  • NancyDru committed 665934d on 7.x-1.x authored by r0nn1ef
    Issue #2277151 by r0nn1ef, NancyDru: Invalid access argument
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.