[RSS Feed/News] user permissions & node permissions

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Is this the right way for a permission set as (forum, eatNuts)?

Code:

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.

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom