Bug ViewableInterface should provide a method to get required relations for canView

There is a bug in this version
K

Kirby

Guest
ViewableInterface allows to perform viewability checks on arbitrary entities that implement this interface.

Depending on the entity, actually calling canView requires quite a few relations to performan viewability checks:
A Post entity for example requires Thread, Thread.Forum, Thread.Forum.Node and Thread.Forum.Node.Permissions.

If those entitites are not already available in the entity cache this causes quite a few additional queries; if...

Read more

Continue reading...