From dd860363cdada323c7aa586deec3a8f3e86d6200 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 27 Jan 2015 11:09:23 +0800 Subject: [PATCH] * finish task #2198. --- module/backup/view/index.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/backup/view/index.html.php b/module/backup/view/index.html.php index 86436f8703..952581f3fd 100644 --- a/module/backup/view/index.html.php +++ b/module/backup/view/index.html.php @@ -47,8 +47,8 @@ 1) echo "rowspan='$rowspan'"?>> name", '', 'list', 'repeat', 'hiddenwin', 'restore'); - common::printIcon('backup', 'delete', "file=$backupFile->name", '', 'list', '', 'hiddenwin'); + if(common::hasPriv('backup', 'restore')) echo html::a(inlink('restore', "file=$backupFile->name"), $lang->backup->backup, 'hiddenwin', "class='restore'"); + if(common::hasPriv('backup', 'delete')) echo html::a(inlink('delete', "file=$backupFile->name"), $lang->delete, 'hiddenwin'); ?>