Project

General

Profile

Patch #9317 ยป 0001-Admin-user-is-always-authorized-when-no-context-is-g.patch

Alex Shulgin, 2011-09-25 10:52

View differences:

app/models/user.rb
(block_given? ? yield(role, self) : true)
}
else
false
# Admin users are always authorized when no context is given
return true if admin?
end
end
    (1-1/1)