summaryrefslogtreecommitdiff
path: root/actions/profilesettings.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/profilesettings.php')
-rw-r--r--actions/profilesettings.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index 28b1d20f3..8f55a4718 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -452,4 +452,33 @@ class ProfilesettingsAction extends AccountSettingsAction
return $other->id != $user->id;
}
}
+
+ function showAside() {
+ $user = common_current_user();
+
+ $this->elementStart('div', array('id' => 'aside_primary',
+ 'class' => 'aside'));
+ if ($user->hasRight(Right::BACKUPACCOUNT)) {
+ $this->elementStart('li');
+ $this->element('a',
+ array('href' => common_local_url('backupaccount')),
+ _('Backup account'));
+ $this->elementEnd('li');
+ }
+ if ($user->hasRight(Right::DELETEACCOUNT)) {
+ $this->elementStart('li');
+ $this->element('a',
+ array('href' => common_local_url('deleteaccount')),
+ _('Delete account'));
+ $this->elementEnd('li');
+ }
+ if ($user->hasRight(Right::RESTOREACCOUNT)) {
+ $this->elementStart('li');
+ $this->element('a',
+ array('href' => common_local_url('restoreaccount')),
+ _('Restore account'));
+ $this->elementEnd('li');
+ }
+ $this->elementEnd('div');
+ }
}