Updated version
Added simple role check for admin pages