Skip to content

Sync not possible when remote side is read-only #52

@cziehr

Description

@cziehr

If the user who is syncing has only read permissions on the remote wiki, the sync fails, because pages can't be locked.

I helped myself by commenting out the lines

foreach((array) $data['lockfail'] as $id){
$this->_listOut($this->getLang('lockfail').' '.hsc($id),'error');
unset($synclist[$id]);
}

in lib/plugins/sync/admin.php

but this is rather quick'n'dirty and lost after every upgrade of the plugin.

It would be nice if the sync plugin recognizes when a page or a namespace is read only in the remote wiki and skips locking in this case - because locking isn't necessary when the page can't be edited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions