#507 : Redirect to unauthorized place in Carstore Example failed

This is a fix for #507 
What i the goal of this function?