HomePhabricator

Skip diffs in scripts the user can’t read

Description

Skip diffs in scripts the user can’t read

If there is a list of “supported” scripts in the user’s session, analyze
the diffs of unpatrolled edits and only rediret the user to those they
can read. This makes any_diff() somewhat slower, but it seems to be okay
in practice. (Note that diffs with no primary script, e. g. for edits
touching statements with entity values, will be shown to any user.)

There is no way for the user to set this list of supported scripts yet –
that will be added next.

Details

Provenance
LucasWerkmeisterAuthored on Jan 27 2019, 5:11 PM
Parents
R2469:0b51d466ceb7: Add function to get primary script of diff
Branches
Unknown
Tags
Unknown
ChangeId
None