New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply permissions system to comments #8035
Conversation
9082c75
to
00c94be
Compare
00c94be
to
d35c234
Compare
Hi @entantoencuanto |
d35c234
to
61f9120
Compare
92f1350
to
d59da0b
Compare
… admin controllers concern
e38d823
to
9924e4f
Compare
Now it's ready, @andreslucena, I've added the 2 remaining resources and the PR description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* develop: (32 commits) Remove obsolete rake webpack task (#8237) Active storage migrations service (#7902) Fix content type delegation to blank attachments (#8230) Evote bug fixing (#8220) Fix the proposal data migration for proposals without authors or organization (#8015) Bump addressable version because security issues (#8229) Online meetings iframe visibility with time (#8097) Meetings iframe and iframe URL (#8096) Remove flaky test on meetings (#8226) Fix broken tests after problematic PRs (#8224) Apply permissions system to comments (#8035) Set current_component as commentable when commentable is a participatory space (#8189) Fix don't require inactive authorization handlers (#8122) Improve metrics calculations performance (#8215) Fix performance issue in notification settings page (#8155) Active storage migration (#7598) Update manual installation guide in documentation (#8217) Load JS configuration in elections focus mode layout (#8213) Fix user activity pagination when there are hidden items (#8202) Make it possible to define SCSS settings overrides from modules (#8198) ...
🎩 What? Why?
This PR extends authorizations permissions system to comments on all commentable resources:
CommentableWithComponent
concern and the comment action has been declared in their resource manifests.Decidim::Initiative
andDecidim::Consultations::Question
. For them:current_participatory_space_manifest
used in some controllers of initiatives to return the participatory space manifest instead of a resource manifestpermissions_class_name
in resources manifests as it is done in the manifests of the participatory spaces manifests.📌 Related Issues
Link your PR to an issue
Testing
From admin visit accountability, blogs, budgets, debates, meetings and sortitions components of a participatory space. The permissions icon should appear and the permissions for comment action should be available in the permissions modal.
The same from initiatives and questions of a consultation indexes.
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/
.📷 Screenshots