URL Path
Adds a url path for the header
I think that this is designed in the verification of permissions, the same happens with the default widgets of New posts/threadsBug?
I have "View threads by others" for Guest set to YES.
and "View thread content" for Guest set to NO.
and Widget isn't showing to Guest?
src\XF\Entity\Thread.php
public function canView(&$error = null)
{
if (!$this->Forum || !$this->Forum->canView())
{
return false;
}
$visitor = \XF::visitor();
$nodeId = $this->node_id;
if (!$visitor->hasNodePermission($nodeId, 'view'))
{
return false;
}
if (!$visitor->hasNodePermission($nodeId, 'viewOthers') && $visitor->user_id != $this->user_id)
{
return false;
}
if (!$visitor->hasNodePermission($nodeId, 'viewContent'))
{
return false;
}
For all display styles or you want to hide the expanded style with the permission "View thread content"?Is it possible to force show your widget to guest?
Thanks!
PleasePlease add new options:
- Dis-allow locked threads from showing
- Use guest permissions (instead of current user permissions)
- Cache TTL (This renderer supports caching for improved performance, you can enter the number of seconds for time to live (TTL) value to suit your need. Leave it blank to let the renderer decide the TTL itself. Enter 0 will effectively disable caching.)
We use essential cookies to make this site work, and optional cookies to enhance your experience.