Skip to content

Valuator should not access resource moderation tools (hide button)#10205

Merged
andreslucena merged 13 commits intodecidim:developfrom
i-need-another-coffee:fix-10187
Apr 25, 2023
Merged

Valuator should not access resource moderation tools (hide button)#10205
andreslucena merged 13 commits intodecidim:developfrom
i-need-another-coffee:fix-10187

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu commented Jan 6, 2023

🎩 What? Why?

During the review and testing of #10024, @ahukkanen noticed that process valuators can also see the hiding controls.
@decidim/product has confirmed that the valuators should not be able to see the moderations tools.
This PR addesses the issue.

📌 Related Issues

Link your PR to an issue

Testing

  1. Login as an admin, visit a resource
  2. Open the flag modal, see the hide resource checkbox
  3. Login as a valuator, visit the same resource from step 1
  4. Open the flag modal, you should not see hide resource checkbox

Please note: This PR should not be backported to older releases.
♥️ Thank you!

@alecslupu alecslupu added type: fix PRs that implement a fix for a bug module: admin labels Mar 20, 2023
@andreslucena
Copy link
Copy Markdown
Member

Can we retake this PR @alecslupu 🙏🏽 ? You'd need to merge with develop just to be sure, as its an older PR. Thanks

@alecslupu
Copy link
Copy Markdown
Contributor Author

Yes, is on the list to make it happen. I just want to focus on what is hot, so that we actually close them :)

@alecslupu alecslupu marked this pull request as ready for review March 20, 2023 21:54
@alecslupu alecslupu added the release: v0.28 Issues or PRs that need to be tackled for v0.28 label Mar 20, 2023
@alecslupu
Copy link
Copy Markdown
Contributor Author

@andreslucena This has been rataken, you could start the review process when time suits you.

@alecslupu alecslupu requested a review from andreslucena April 19, 2023 11:11
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

I tried this out locally and work as advertised.

Just a quick refactor to make it cleaner and we're good to go on my side

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

👍🏽

@andreslucena andreslucena merged commit 2dded85 into decidim:develop Apr 25, 2023
@alecslupu alecslupu deleted the fix-10187 branch April 25, 2023 07:38
@alecslupu alecslupu added the no-backport Pull Requests that should not be backported label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: admin no-backport Pull Requests that should not be backported release: v0.28 Issues or PRs that need to be tackled for v0.28 type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Valuator should not be able to use frontend moderation tools

2 participants