user.rb.patch

Jan from Planio www.plan.io, 2010-09-26 20:13

Download (476 Bytes)

View differences:

app/models/user.rb
355 355

  
356 356
  # Is the user allowed to do the specified action on any project?
357 357
  # See allowed_to? for the actions and valid options.
358
  def allowed_to_globally?(action, options)
358
  def allowed_to_globally?(action, options={})
359 359
    allowed_to?(action, nil, options.reverse_merge(:global => true))
360 360
  end
361 361