app/models/ability.rb in mix-rails-auth-0.12.1 vs app/models/ability.rb in mix-rails-auth-0.12.2
- old
+ new
@@ -3,10 +3,10 @@
def initialize(user)
# Define abilities for the passed in user here. For example:
#
user ||= User.new # guest user (not logged in)
- if user.is?(:admin)
+ if true #user.is?(:admin)
can :manage, :all
else
can :read, :all
end
#