Commit 6a7bf9db authored by Evan Prodromou's avatar Evan Prodromou

don't show the backup link if the user can't backup

parent 5089d306
......@@ -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');
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment