ViewableInterface should provide a method to get required relations for canView

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

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ