app/models/enju_circulation/ability.rb in enju_circulation-0.1.0.pre36 vs app/models/enju_circulation/ability.rb in enju_circulation-0.1.0.pre37

- old
+ new

@@ -81,10 +81,10 @@ can [:destroy, :delete], Checkout do |checkout| checkout.user == user && checkout.checkin end can :index, Reserve can :create, Reserve do |reserve| - user.user_number.present? + user.profile.user_number.try(:present?) end can [:show, :update, :destroy, :delete], Reserve do |reserve| reserve.user == user end can :read, [