public function isContentStatusTransitionAllowed($fromStatus, $toStatus, $user, $contenttype, $contentid = null)
    {
        $perm = $this->getContentStatusTransitionPermission($fromStatus, $toStatus);
        if ($perm === null) {
            // Bypass permission check if no actual transition is to happen
            return true;
        }

        return $this->isAllowed($perm, $user, $contenttype, $contentid);
    }
public function isContentStatusTransitionAllowed($fromStatus, $toStatus, $user, $contenttype, $contentid = null)
    {
        $perm = $this->getContentStatusTransitionPermission($fromStatus, $toStatus);
        if ($perm === null) {
            // Bypass permission check if no actual transition is to happen
            return true;
        }

        return $this->isAllowed($perm, $user, $contenttype, $contentid);
    }
public function isContentStatusTransitionAllowed ( $ fromStatus , $ toStatus , $ user , $ contenttype , $ contentid = null ) { $ perm = $ this -> getContentStatusTransitionPermission ( $ fromStatus , $ toStatus ) ; if ( $ perm === null ) { // Bypass permission check if no actual transition is to happen return true ; } return $ this -> isAllowed ( $ perm , $ user , $ contenttype , $ contentid ) ; }
Check to see if a user is allowed to change that status of a Contenttype
record to a target status.

@param string $fromStatus
@param string $toStatus
@param array  $user
@param string $contenttype
@param int    $contentid

@return bool
Check to see if a user is allowed to change that status of a Contenttype record to a target status .