fix check if model is from allow class in Acl::addWhere