Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed from if($record && !$record->canDeleteFromLive()) becuase I w…

…as receiving error when attempting to unpublish and this works as far as I have tested.
  • Loading branch information...
commit 09aebbd123edfd6402314f0cb795a104af667fbe 1 parent 001726d
@jamesbolitho jamesbolitho authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/ModelAdmin/DataObjectAsPageAdmin.php
View
2  code/ModelAdmin/DataObjectAsPageAdmin.php
@@ -39,7 +39,7 @@ public function doUnpublish($data, $form, $request)
{
$record = $this->currentRecord;
- if($record && !$record->canDeleteFromLive())
+ if($record && !$record->canUnPublish())
return Security::permissionFailure($this);
$record->doUnpublish();
Please sign in to comment.
Something went wrong with that request. Please try again.