0001-Admin-user-is-always-authorized-when-no-context-is-g.patch

Alex Shulgin, 2011-09-25 10:52

Download (954 Bytes)

View differences:

app/models/user.rb
432 432
        (block_given? ? yield(role, self) : true)
433 433
      }
434 434
    else
435
      false
435
      # Admin users are always authorized when no context is given
436
      return true if admin?
436 437
    end
437 438
  end
438 439

  
439
-