Page MenuHomePhabricator

It is not possible to view a deleted/suppressed log entry when the user is missing the deleterevision permission
Closed, ResolvedPublic

Description

It was reported within the OC that a member was not capable of viewing a suppressed log entry via the onwiki interface although they have the required permissions.

https://meta.wikimedia.org/w/index.php?title=Special:Log&logid=45519433 is a random revision deleted log entry.

log.png (609×1 px, 54 KB)

But hitting the '(show)' button results in the following.

missing_permission.png (328×899 px, 31 KB)

This is due to Special:RevisionDelete requiring the deleterevision permission and there is no real technical implementation here which allows only viewing the log entry. It is possible to use the api, but that is quite uncomfortable.

Event Timeline

Change 763373 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] Allow users with 'deletedhistory' view Special:RevisionDelete

https://gerrit.wikimedia.org/r/763373

Apparently this is known, see the comments by Vogone on T128914.

Viewing deleted log entries is closer to deletelogentry than deleterevision.
Ideally, there would be view-only versions like we have for viewsuppressed, which I think only works for suppressed revisions, not suppressed logs.

Change 763373 abandoned by Zabe:

[mediawiki/core@master] Allow users with 'deletedhistory' to view Special:RevisionDelete

Reason:

https://gerrit.wikimedia.org/r/763373

Viewing deleted log entries is closer to deletelogentry than deleterevision.

The problem is actually far more fundamental, e.g. users with the deletelogentry can practically not delete log entries if they do not have the deleterevision permission since they can't access the special page, although they should be capable of doing so.

Ideally, there would be view-only versions like we have for viewsuppressed, which I think only works for suppressed revisions, not suppressed logs.

viewsuppressed is also the permission for suppressed revisions, suppressed log entries, etc. (see code). The only exception are hidden abuse log entries, for which you need the abusefilter-hidden-log permission.

Change 763531 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] Allow users with sufficient permissions to access Special:RevisionDelete

https://gerrit.wikimedia.org/r/763531

Huji subscribed.

I think this is worth including in the upcoming user notice.

Huji claimed this task.

Change 763531 merged by jenkins-bot:

[mediawiki/core@master] Allow users with sufficient permissions to access Special:RevisionDelete

https://gerrit.wikimedia.org/r/763531