base/lib/social_stream/base/ability.rb in social_stream-2.1.1 vs base/lib/social_stream/base/ability.rb in social_stream-2.2.0

- old
+ new

@@ -79,25 +79,23 @@ can :create, Group do |g| subject.present? && g.author_id == Actor.normalize_id(subject) end - can :update, Group do |g| + can [ :update, :destroy, :represent ], Group do |g| g.represented_by?(subject) end - can :destroy, Group do |g| - g.represented_by?(subject) - end - can :read, Profile # Profile can :update, Profile do |p| p.subject.represented_by?(subject) end # Privacy + can :read, Relation::Owner + can :manage, ::Relation::Custom do |r| subject.present? && ( r.actor_id == subject.actor_id || r.actor.allow?(subject, 'manage', 'relation/custom') )