error/moodle/restore user missing capability
From MoodleDocs
This error occurs when you try to restore a course into a new one with a user who doesn't have the right permissions to do this. Even though the user has the course creator role you have to assure that this role has the "moodle/restore:restorecourse" permission allowed (Home / ► Site administration / ► Users / ► Permissions / ► Define roles).