class Fastly::User
def can_do?(test_role)
def can_do?(test_role) test_priority = PRIORITIES[test_role.to_sym] || 1000 my_priority = PRIORITIES[role.to_sym] || 1000 if test_priority == my_priority test_role.to_s == :owner ? owner? : test_role.to_sym == role.to_sym else my_priority < test_priority end end