Deek
Member
I created a new permission in group 'developer' with the permission 'canDownload' in the admin panel. I'm able to check the permission easily in my addon. I'm trying to enable this permission in my addon using
This isn't working when I go to check the permission again. How do I set a permission from within an addon?
PHP:
XenForo_Model_Permission->updateGlobalPermissionsForUserCollection(array('developer' => array('canDownload' = true)), 0, $userId);
This isn't working when I go to check the permission again. How do I set a permission from within an addon?