About user permission using company

i have added new company to company doctype. then i created a user and in the user permission doctype i restricted the user to the new company. then before it finished updating i try to cancel the user permission . then i can’t access the data on any module from any account but the data is in the database