HQCoder
Member
I added the following to the xf_permission_entry table.
Is it necessary to rebuild xf_permission_entry or is there another way?
But then I debug with the \XF::dump() command not showing the added permissions.$db->query("insert ignore into xf_permission_entry (user_group_id, user_id, permission_group_id, permission_id, permission_value, permission_value_int) values
(?, 0, 'general', 'viewxxx', 'allow', '0'),
(?, 0, 'general', 'addxxx', 'allow', '0')
", array(1,4));
PHP:
$visitor = \XF::visitor();
echo "<pre>";
\XF::dump($visitor['PermissionSet']);
echo "<pre>";