Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function set_guest_acl(): void |
||
45 | { |
||
46 | if (!class_exists(\auth_admin::class)) |
||
47 | { |
||
48 | include($this->phpbb_root_path . 'includes/acp/auth.' . $this->php_ext); |
||
49 | } |
||
50 | $auth_admin = new \auth_admin(); |
||
51 | |||
52 | $auth['u_ppde_use'] = (int) $this->config['ppde_allow_guest']; |
||
53 | $auth['u_ppde_view_donorlist'] = (int) $this->config['ppde_ipn_dl_allow_guest']; |
||
54 | |||
55 | $auth_admin->acl_set('user', [0], [ANONYMOUS], $auth); |
||
56 | } |
||
76 |