public function canEdit($member)
    {
        if (!Permission::check('EDIT_EMBARGOED_WORKFLOW') && // not given global/override permission to edit
            !$this->owner->AllowEmbargoedEditing) { // item flagged as not editable
            $publishTime = $this->owner->dbObject('PublishOnDate');

            if ($publishTime && $publishTime->InFuture() || // when scheduled publish date is in the future
                // when there isn't a publish date, but a Job is in place (publish immediately, but queued jobs is
                // waiting)
                (!$publishTime && $this->owner->PublishJobID != 0)
            ) {
                return false;
            }
        }
    }
public function canEdit($member)
    {
        if (!Permission::check('EDIT_EMBARGOED_WORKFLOW') && // not given global/override permission to edit
            !$this->owner->AllowEmbargoedEditing) { // item flagged as not editable
            $publishTime = $this->owner->dbObject('PublishOnDate');

            if ($publishTime && $publishTime->InFuture() || // when scheduled publish date is in the future
                // when there isn't a publish date, but a Job is in place (publish immediately, but queued jobs is
                // waiting)
                (!$publishTime && $this->owner->PublishJobID != 0)
            ) {
                return false;
            }
        }
    }
public function canEdit ( $ member ) { if ( ! Permission :: check ( 'EDIT_EMBARGOED_WORKFLOW' ) && // not given global/override permission to edit ! $ this -> owner -> AllowEmbargoedEditing ) { // item flagged as not editable $ publishTime = $ this -> owner -> dbObject ( 'PublishOnDate' ) ; if ( $ publishTime && $ publishTime -> InFuture ( ) || // when scheduled publish date is in the future // when there isn't a publish date, but a Job is in place (publish immediately, but queued jobs is // waiting) ( ! $ publishTime && $ this -> owner -> PublishJobID != 0 ) ) { return false ; } } }
Add edit check for when publishing has been scheduled and if any workflow definitions want the item to be
disabled.

@param Member $member
@return bool|null
Add edit check for when publishing has been scheduled and if any workflow definitions want the item to be disabled .