Skip to content

Commit

Permalink
Remove unused permissions on Blogs
Browse files Browse the repository at this point in the history
* Remove unused permissions on Blogs

* Add translations missings for Posts actions
  • Loading branch information
andreslucena authored and alecslupu committed Jan 30, 2023
1 parent 3636bf9 commit 625061e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions decidim-blogs/config/locales/en.yml
Expand Up @@ -61,8 +61,10 @@ en:
components:
blogs:
actions:
comment: Comment
create: Create
destroy: Delete
endorse: Endorse
update: Update
name: Blog
settings:
Expand Down
2 changes: 1 addition & 1 deletion decidim-blogs/lib/decidim/blogs/component.rb
Expand Up @@ -36,7 +36,7 @@
component.register_resource(:blogpost) do |resource|
resource.model_class_name = "Decidim::Blogs::Post"
resource.card = "decidim/blogs/post"
resource.actions = %w(endorse vote amend comment)
resource.actions = %w(endorse comment)
resource.searchable = true
end

Expand Down

0 comments on commit 625061e

Please sign in to comment.