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

WeblinkController::allowEdit() grants editing when the user has core.edit, or core.edit.own and is the creator of the weblink. The edit icon in the frontend templates is shown in the same cases. The frontend form view (View/Form/HtmlView.php) however only checks core.edit, so users who only have core.edit.own get a 403 "You are not authorised" error when they try to edit their own weblink.

The view now uses the same rule as the controller.

Testing Instructions

  • Create a user group that has Create and Edit Own (but not Edit) for Weblinks.
  • Log in on the frontend with a user of this group, submit a weblink and approve it in the backend.
  • On the frontend, click the edit icon of this weblink.

Expected result

The edit form opens. For weblinks of other users the edit icon is not shown and editing is still refused.

Actual result

403 error: You are not authorised to view this resource.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment