public function getSearch($aData = [])
    {
        if (!userHasPermission('admin:auth:accounts:browse')) {
            $oHttpCodes = Factory::service('HttpCodes');
            throw new ApiException(
                'You are not authorised to search users',
                $oHttpCodes::STATUS_UNAUTHORIZED
            );
        }

        return parent::getSearch($aData);
    }
public function getSearch($aData = [])
    {
        if (!userHasPermission('admin:auth:accounts:browse')) {
            $oHttpCodes = Factory::service('HttpCodes');
            throw new ApiException(
                'You are not authorised to search users',
                $oHttpCodes::STATUS_UNAUTHORIZED
            );
        }

        return parent::getSearch($aData);
    }
public function getSearch ( $ aData = [ ] ) { if ( ! userHasPermission ( 'admin:auth:accounts:browse' ) ) { $ oHttpCodes = Factory :: service ( 'HttpCodes' ) ; throw new ApiException ( 'You are not authorised to search users' , $ oHttpCodes :: STATUS_UNAUTHORIZED ) ; } return parent :: getSearch ( $ aData ) ; }
Search for an item

@return array
Search for an item