diff --git a/app_auto_backup/__manifest__.py b/app_auto_backup/__manifest__.py index 2af07890..a1d18b14 100644 --- a/app_auto_backup/__manifest__.py +++ b/app_auto_backup/__manifest__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # 'author': "Yenthe Van Ginneken", # 'website': "http://www.odoo.yenthevg.com", -# 'author': "guohuadeng@hotmail.com", +# 'author': "sales@odooai.cn", # 'website': "https://www.odooai.cn", { diff --git a/app_auto_backup/controllers/main.py b/app_auto_backup/controllers/main.py index bd672f4b..0b200798 100644 --- a/app_auto_backup/controllers/main.py +++ b/app_auto_backup/controllers/main.py @@ -14,8 +14,8 @@ class AppAutoBackup(http.Controller): @http.route("/dbbackup/download/", type="http", auth="user") def download_backupfile(self, file_path, **kw): - _logger.warning('download_backupfile: %s', file_path) - if not self.env.user.has_group('base.group_system'): + # _logger.warning('download_backupfile: %s', file_path) + if not request.env.user.has_group('base.group_system'): raise UserError(_('File not found for user.')) if os.path.exists(file_path): try: