From fc8a1fc84b77080ff201cffcbfef389cbe394a61 Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 16 Dec 2015 16:26:59 +0100 Subject: [PATCH] allows not-logged-in users to read existing annotations --- app/models/abilities/common.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/abilities/common.rb b/app/models/abilities/common.rb index 30e792f95..e3372d408 100644 --- a/app/models/abilities/common.rb +++ b/app/models/abilities/common.rb @@ -40,7 +40,8 @@ module Abilities can :vote_featured, Proposal end - can :manage, Annotation + can :create, Annotation + can [:update, :delete], Annotation, user_id: user.id end end