public function getSitesIdWithAtLeastWriteAccess()
    {
        $this->loadSitesIfNeeded();

        return array_unique(array_merge(
                $this->idsitesByAccess['write'],
                $this->idsitesByAccess['admin'],
                $this->idsitesByAccess['superuser'])
        );
    }
public function getSitesIdWithAtLeastWriteAccess()
    {
        $this->loadSitesIfNeeded();

        return array_unique(array_merge(
                $this->idsitesByAccess['write'],
                $this->idsitesByAccess['admin'],
                $this->idsitesByAccess['superuser'])
        );
    }
public function getSitesIdWithAtLeastWriteAccess ( ) { $ this -> loadSitesIfNeeded ( ) ; return array_unique ( array_merge ( $ this -> idsitesByAccess [ 'write' ] , $ this -> idsitesByAccess [ 'admin' ] , $ this -> idsitesByAccess [ 'superuser' ] ) ) ; }
Returns an array of ID sites for which the user has at least a WRITE access.
Which means WRITE or ADMIN or SUPERUSER.

@return array  Example if the user is WRITE for 4 and 8
and has VIEW access for 1 and 7, it returns array(4, 8);
Returns an array of ID sites for which the user has at least a WRITE access . Which means WRITE or ADMIN or SUPERUSER .