update permission check