support 2.0.3 and 2.5 of raven for user permissions

fixes #1518


code review guys @johnsimons @andreasohlund @indualagarsamy