The latest version enable authenticated user see everyone's addressbook just by change the number in the url contextual argument.

I'm not sure it's something wrong with my permission or it's a bug.

Members fund testing for the Drupal project. Drupal Association Learn more


jsacksick’s picture

Assigned: Unassigned » jsacksick
Priority: Normal » Major

You're right, this bug has been introduced by the patch coming from this issue #1961854: Address Book tab not displaying for authenticated users.

jsacksick’s picture

Status: Active » Needs review
1.4 KB

Can you try with that patch ?

jsacksick’s picture

Status: Needs review » Fixed

I decided to go ahead and I merged it.

relaxpor’s picture

Sorry guy, the last patch give me fatal error.

Something wrong with this show in the log.
[17-May-2013 22:51:30 Asia/Bangkok] PHP Fatal error: Call to undefined function  user_access() in /Applications/MAMP/htdocs/himaparn/sites/all/modules/contrib/commerce_addressbook/commerce_addressbook.module on line 173
[17-May-2013 22:51:30 Asia/Bangkok] PHP Stack trace:

caktux’s picture

Version: 7.x-2.0-rc5 » 7.x-2.x-dev

Confirmed #4

caktux’s picture

Status: Fixed » Needs work
yaslama’s picture

It seems that the problem of #4 is caused by bad characters in lines 173 and 174 of commerce_addressbook.module.
One can see them clearly in the diff:

relaxpor’s picture

Status: Needs work » Closed (fixed)

after delete this character, it's fixed!

agileadam’s picture

I can confirm the bug in #7. Removing these characters fixes the "Call to undefined function user_access()" issue.

jsacksick’s picture

A new version has been tagged without the characters already, you should use that one.