I don't know why we don't have that yet, but there should be a way to check access for result items that aren't entities – i.e., a checkItemAccess() method on the datasource plugin itself. (We only ever need to check for "view" access, I'm pretty sure, so that would just need one parameter, the item.)

Then, we could also use that in the Views query plugin for applying access checks.

Comments

drunken monkey created an issue. See original summary.

drunken monkey’s picture

Status: Active » Needs review
StatusFileSize
new9.17 KB

Pretty straight-forward, but should get us more flexibility again.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

  • drunken monkey committed 80d8e97 on 8.x-1.x
    Issue #2650270 by drunken monkey: Added a method for access checks to...
drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Great, thanks for reviewing!
Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.