public function userSubmittedItems(Member $user)
    {
        $userInstances = DataList::create(WorkflowInstance::class)
            ->where('"WorkflowStatus" != \'Complete\'')
            ->sort('LastEdited DESC');

        // Restrict the user if they're not an ADMIN.
        if (!Permission::checkMember($user, 'ADMIN')) {
            $userInstances = $userInstances->filter('InitiatorID:ExactMatch', $user->ID);
        }

        return $userInstances;
    }
public function userSubmittedItems(Member $user)
    {
        $userInstances = DataList::create(WorkflowInstance::class)
            ->where('"WorkflowStatus" != \'Complete\'')
            ->sort('LastEdited DESC');

        // Restrict the user if they're not an ADMIN.
        if (!Permission::checkMember($user, 'ADMIN')) {
            $userInstances = $userInstances->filter('InitiatorID:ExactMatch', $user->ID);
        }

        return $userInstances;
    }
public function userSubmittedItems ( Member $ user ) { $ userInstances = DataList :: create ( WorkflowInstance :: class ) -> where ( '"WorkflowStatus" != \'Complete\'' ) -> sort ( 'LastEdited DESC' ) ; // Restrict the user if they're not an ADMIN. if ( ! Permission :: checkMember ( $ user , 'ADMIN' ) ) { $ userInstances = $ userInstances -> filter ( 'InitiatorID:ExactMatch' , $ user -> ID ) ; } return $ userInstances ; }
Get items that the passed-in user has submitted for workflow review

@param Member $member
@return DataList
Get items that the passed - in user has submitted for workflow review