Skip to content

Commit

Permalink
Fix canceling remote wipe of EAS client from user prefs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 20, 2014
1 parent 0bf5373 commit bb48586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde/lib/Prefs/Special/Activesync.php
Expand Up @@ -96,7 +96,7 @@ public function update(Horde_Core_Prefs_Ui $ui)
$state->setDeviceRWStatus($ui->vars->wipeid, Horde_ActiveSync::RWSTATUS_PENDING);
$notification->push(sprintf(_("A remote wipe for device id %s has been initiated. The device will be wiped during the next synchronisation."), $ui->vars->wipe));
} elseif ($ui->vars->cancelwipe) {
if (!$state->deviceExists($ui->vars->wipeid, $auth)) {
if (!$state->deviceExists($ui->vars->cancelwipe, $auth)) {
throw new Horde_Exception_PermissionDenied();
}
$state->setDeviceRWStatus($ui->vars->cancelwipe, Horde_ActiveSync::RWSTATUS_OK);
Expand Down

0 comments on commit bb48586

Please sign in to comment.