summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/profilesettings.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index 17ffdf811..4890a575b 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -454,11 +454,15 @@ class ProfilesettingsAction extends AccountSettingsAction
}
function showAside() {
+ $user = common_current_user();
+
$this->elementStart('div', array('id' => 'aside_primary',
'class' => 'aside'));
- $this->element('a',
- array('href' => common_local_url('backupaccount')),
- _('Backup account'));
+ if ($user->hasRight(Right::BACKUPACCOUNT)) {
+ $this->element('a',
+ array('href' => common_local_url('backupaccount')),
+ _('Backup account'));
+ }
$this->elementEnd('div');
}
}