protected function parse()
{
parent::parse();
// reset avatar URL
if ($this->record['settings']['avatar'] != '') {
$this->record['settings']['avatar'] .= '?time=' . time();
}
// only allow deletion of other users
$this->tpl->assign('allowUsersDelete', $this->authenticatedUser->getUserId() != $this->id);
// assign
$this->tpl->assign('record', $this->record);
$this->tpl->assign('id', $this->id);
// assign that we're god or the same user
$this->tpl->assign('allowPasswordEdit', $this->authenticatedUser->getUserId() == $this->id || $this->authenticatedUser->isGod());
// assign that you can edit the user rights
$this->tpl->assign('allowUserRights', $this->allowUserRights);
// check if we need to show the password strength and parse the label
$this->tpl->assign('showPasswordStrength', $this->record['settings']['password_strength'] !== 'strong');
$this->tpl->assign('passwordStrengthLabel', BL::lbl($this->record['settings']['password_strength']));
}