Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Add selectors for user deletion action
Browse files Browse the repository at this point in the history
  • Loading branch information
cpatrick committed Sep 27, 2015
1 parent 9a62f4f commit 1845f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/views/user/userpage.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/common/common.bro

if ($this->isAdmin && !$this->user->isAdmin()) {
echo '
<li><a onclick="midas.user.showDeleteDialog('.$this->escape($this->user->getKey(
<li id="userDeleteActionAdmin"><a onclick="midas.user.showDeleteDialog('.$this->escape($this->user->getKey(
)).');"><img alt="" src="'.$this->coreWebroot.'/public/images/icons/close.png"/> '.$this->t(
'Delete user'
).'</a></li>';
} else {
if (!$this->user->isAdmin() && $this->user->getKey() == $this->currentUser->getKey()
) {
echo '
<li><a onclick="midas.user.showDeleteDialog('.$this->escape($this->user->getKey(
<li id="userDeleteActionNonAdmin"><a onclick="midas.user.showDeleteDialog('.$this->escape($this->user->getKey(
)).');"><img alt="" src="'.$this->coreWebroot.'/public/images/icons/close.png"/> '.$this->t(
'Delete my account'
).'</a></li>';
Expand Down

0 comments on commit 1845f4a

Please sign in to comment.