Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2842

Extension Writers Discussion • Re: Check user permissions by user id

$
0
0
You'll need a user array of some sort. In the example below, $row is our user array.

Code:

$auth2 = new \phpbb\auth\auth();$auth2->acl($row);$s_in_group = $auth2->acl_get('some_permission') ? true : false;unset($auth2);[code]

Statistics: Posted by Kailey — Sun May 19, 2024 4:17 pm



Viewing all articles
Browse latest Browse all 2842

Trending Articles