server/migractions.py
changeset 1240 6a9f621e07cc
parent 1080 7437abc17e02
child 1251 af40e615dc89
--- a/server/migractions.py	Sat Apr 04 15:48:08 2009 +0200
+++ b/server/migractions.py	Mon Apr 06 08:58:44 2009 +0200
@@ -106,7 +106,9 @@
                 if answer == 1: # 1: continue, 2: retry
                     break
             else:
+                from cubicweb.toolsutils import restrict_perms_to_user
                 print 'database backup:', backupfile
+                restrict_perms_to_user(backupfile, self.info)
                 break
         
     def restore_database(self, backupfile, drop=True):