I am writing an extension (for phpBB3.2) in that I want to give the users or admins the possibility to create new Groups and related Forums as simple as possible. They should have a form, in that the user or administrator write the name and the description and the group and the forum will be created. The group should get user permissions to the group related forum and the group moderators should get moderator permissions on that group related Forum.
Now my question: How I can set permission to a forum? It would be nice, if I could use a predefined permission role to set this permissons. I have found the following function, that seems to set the permissions (includes/acp/acp_permissions.php:745), but I can not find in the code, how the parameter $auth_settings have been filled.
Code: Select all
$auth_admin->acl_set($ug_type, $forum_id, $ug_id, $auth_settings, $assigned_role);
Code: Select all
$settings = $request->variable('setting', array(0 => array(0 => array('' => 0))), false, \phpbb\request\request_interface::POST);
Best Regards,
Daniel