امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Is this the right way for a permission set as (forum, eatNuts)?
Code:
Then I can set permission to the usergroup and/or to a forum->permission->usergroup->permission?
My example does not work, and I dont know why.
Code:
کد:
if (($visitor->hasPermission('forum', 'eatNuts')
|| $visitor->hasNodePermission($forum->node_id, 'eatNuts'))
Then I can set permission to the usergroup and/or to a forum->permission->usergroup->permission?
My example does not work, and I dont know why.
