mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt dump file
This commit is contained in:
@@ -14,8 +14,8 @@ class AppAutoBackup(http.Controller):
|
||||
|
||||
@http.route("/dbbackup/download/<path:file_path>", 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:
|
||||
|
||||
Reference in New Issue
Block a user