Skip to content

Commit d79613b

Browse files
abhiraosteveklabnik
authored andcommitted
Fixing ability. Users can now follow :all
1 parent 562f6aa commit d79613b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/ability.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def initialize(user)
1010
can :create, [Question, Answer]
1111
can :manage, [Question, Answer], :user => user
1212
can :update, user
13-
can [:follow,:unfollow], user
13+
can [:follow,:unfollow], :all
1414
end
1515

1616
# Define abilities for the passed in user here. For example:

0 commit comments

Comments
 (0)