XenForo
Administrative
- Thread starter
- Admin
- #1
Seems like this one is right under the nose but couldn't find anything exact.
I'm wondering if there's an in-built function to check whether a content (thread, post, resource) is visible to guests, while logged as another usergroup, or neutrally checking without using \XF::visitor. So canView() wouldn't be applicable.
The following works:
Code:
Read more
ادامه مطلب...
I'm wondering if there's an in-built function to check whether a content (thread, post, resource) is visible to guests, while logged as another usergroup, or neutrally checking without using \XF::visitor. So canView() wouldn't be applicable.
The following works:
Code:
Code:
$guestPermissionSet = \XF::permissionCache()->getPermissionSet(\XF\Repository\User::$guestPermissionCombinationId);
return...
Read more
ادامه مطلب...