summaryrefslogtreecommitdiff
path: root/lib/userprofile.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-17 12:15:40 -0700
committerBrion Vibber <brion@pobox.com>2010-03-17 12:15:40 -0700
commit67f2f01c5e1cad743e849cdaaaf11deb6e435844 (patch)
treecad1ddbfef5a9b28bc8c13cf7f4ba6240bf6f7d0 /lib/userprofile.php
parent1c942afa60b7ec5a8f0855a14d32110837270119 (diff)
parentca5612c451e4dabde107ff2cfbc737a2f69136df (diff)
Merge branch 'testing' into 0.9.x
Diffstat (limited to 'lib/userprofile.php')
-rw-r--r--lib/userprofile.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/userprofile.php b/lib/userprofile.php
index 1e4543a5a..ca060842b 100644
--- a/lib/userprofile.php
+++ b/lib/userprofile.php
@@ -229,6 +229,17 @@ class UserProfile extends Widget
function showEntityActions()
{
+ if ($this->profile->hasRole(Profile_role::DELETED)) {
+ $this->out->elementStart('div', 'entity_actions');
+ $this->out->element('h2', null, _('User actions'));
+ $this->out->elementStart('ul');
+ $this->out->elementStart('p', array('class' => 'profile_deleted'));
+ $this->out->text(_('User deletion in progress...'));
+ $this->out->elementEnd('p');
+ $this->out->elementEnd('ul');
+ $this->out->elementEnd('div');
+ return;
+ }
if (Event::handle('StartProfilePageActionsSection', array(&$this->out, $this->profile))) {
$cur = common_current_user();