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

Extension Writers Discussion • Creating new permission groups

$
0
0
I've looked through the docs, code and searched, but can't seem to find the answer I'm looking for.

It's common knowledge that you can check if a user has any moderator permissions set by querying $auth->acl_get('m_'). What I'd like to do is create my own group of permissions to query (m_kb_ for example). I'm assuming I would need to create the m_kb_ permission in my migration, but after that, how can I check if a user has any m_kb_ permissions? I know I could probably use $auth->acl_gets() and list each permission, but that seems excessive.

Statistics: Posted by Kailey — Tue Aug 06, 2024 7:50 pm



Viewing all articles
Browse latest Browse all 2220

Trending Articles