Skip to content

fix-move-select-own-post-to-permission: Fix to move the bestAnswer se…#123

Closed
grimur82 wants to merge 12 commits intoFriendsOfFlarum:1.xfrom
glowingblue:gvn/fix-move-select-own-post-to-permission
Closed

fix-move-select-own-post-to-permission: Fix to move the bestAnswer se…#123
grimur82 wants to merge 12 commits intoFriendsOfFlarum:1.xfrom
glowingblue:gvn/fix-move-select-own-post-to-permission

Conversation

@grimur82
Copy link
Copy Markdown

@grimur82 grimur82 commented Dec 3, 2025

…lect own post

  1. User who picks a best answer with own post is now based on group permission
  2. Added releated test cases
  3. Moved/Removed releveant translations
  4. Attributes for permission is now found in post attributes

Reported by: Grimur Vid Neyst
Signed off by: Grimur Vid Neyst grimur.vid-neyst@glowingblue.com

Fixes #0000

Changes proposed in this pull request:

Reviewers should focus on:

Screenshot

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).

Required changes:

…lect own post

1. User who picks a best answer with own post is now based on group permission
2. Added releated test cases
3. Moved/Removed releveant translations
4. Attributes for permission is now found in post attributes

Reported by: Grimur Vid Neyst
Signed off by: Grimur Vid Neyst <grimur.vid-neyst@glowingblue.com>
@grimur82 grimur82 requested a review from a team as a code owner December 3, 2025 08:22
@grimur82 grimur82 changed the base branch from 2.x to 1.x December 3, 2025 08:24
Grimur Vid Neyst added 2 commits December 3, 2025 09:32
Fixed styling according to styleCI

Reported by: Grimur Vid Neyst
Signed off by: Grimur Vid Neyst <grimur.vid-neyst@glowingblue.com>
Reported by: Grimur Vid Neyst
Signed off by: Grimur Vid Neyst <grimur.vid-neyst@glowingblue>
@grimur82 grimur82 marked this pull request as draft December 3, 2025 09:05
Copy link
Copy Markdown
Member

@DavideIadeluca DavideIadeluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar feedback like in #124 (review). One issue we have in the frontend is that if the permission to select own posts is set to admins, that members still see the control to select a own post even when the backend returns a 403:

Screen.Recording.2025-12-03.at.14.38.36.mov

Besides that this PR looks mostly okay 👍 Some CI issues need to be resolved though

@DavideIadeluca
Copy link
Copy Markdown
Member

Closing this in favor of #127

@DavideIadeluca DavideIadeluca deleted the gvn/fix-move-select-own-post-to-permission branch February 12, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants