Apply permissions system to comments#8035
Merged
Conversation
9082c75 to
00c94be
Compare
00c94be to
d35c234
Compare
Member
|
Hi @entantoencuanto |
d35c234 to
61f9120
Compare
92f1350 to
d59da0b
Compare
… admin controllers concern
e38d823 to
9924e4f
Compare
Contributor
Author
|
Now it's ready, @andreslucena, I've added the 2 remaining resources and the PR description |
12 tasks
4 tasks
entantoencuanto
added a commit
that referenced
this pull request
Jul 26, 2021
* 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) ...
roxanaopr
pushed a commit
to i-need-another-coffee/decidim
that referenced
this pull request
Jul 29, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎩 What? Why?
This PR extends authorizations permissions system to comments on all commentable resources:
CommentableWithComponentconcern and the comment action has been declared in their resource manifests.Decidim::InitiativeandDecidim::Consultations::Question. For them:current_participatory_space_manifestused in some controllers of initiatives to return the participatory space manifest instead of a resource manifestpermissions_class_namein 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