The symptom:
When a user with the permission to edit his own links view the link (node/123), there is no edit tab.

The cause:
The function weblinks_access() makes reference to a variable which is not defined in the scope. It is the wrong variable.

The solution:
It should use $user instead of $account.
See the attached patch. The patch fixes the problem for me.

History:
The code to use $account was added/changed as part of Revision 1.1.4.28 which was fixing #127022: add http:// to URL field which is not related at all to the issue. Somehow the change to use $account was mixed in with the same commit.

Related:
In the 6.x branch it works fine because D6 api sends the user account as a parameter. Not in D5.
A similar problem was reported here http://drupal.org/node/61090 but was about different version.

CommentFileSizeAuthor
weblinks_access.diff541 bytesroychri

Comments

duaelfr’s picture

Status: Needs review » Closed (won't fix)

This version of Web Links is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.