Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

In components/com_weblinks/tmpl/weblinks/default.php:

  • $canEdit and $canEditOwn are checked against com_weblinks.weblink.<id>. Weblinks don't have item level assets, so these checks always fall back to the component permissions, and permissions set on a category are ignored.
  • $canEditOwn is assigned twice; the second assignment (against com_weblinks) overwrites the first.

Both now use com_weblinks.category.<catid>, like $canChange in the same template and WeblinkController::allowEdit().

Testing Instructions

  • Give a user group Edit (or Edit Own) only on one weblinks category, not on the component.
  • Log in on the frontend with such a user and open the weblinks list view.

Expected result

The edit links are shown for weblinks of that category (own weblinks for Edit Own) and editing works.

Actual result

No edit links are shown, as only the component permissions are checked.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment