Close asc dialog on ok, insert correct permission for asc function.