return whether group has access to forum

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
GavinP
Registered User
Posts: 34
Joined: Tue Jan 15, 2013 11:16 am

return whether group has access to forum

Post by GavinP »

How can I take a group id, and check whether they have access to a forum or not?

I know I can use

Code: Select all

$auth->acl_gets('f_read', 23)
to see if the logged in user can see a forum, but what I want to do is pass a group id and test the same thing, irrespective of which user is logged in.

Thanks in advance.
User avatar
david63
Registered User
Posts: 18580
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: return whether group has access to forum

Post by david63 »

Perhaps if you were to explain what it is that you are trying to achieve then it might make sense because a group cannot have access to anything - only the members within that group have access
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
GavinP
Registered User
Posts: 34
Joined: Tue Jan 15, 2013 11:16 am

Re: return whether group has access to forum

Post by GavinP »

Well I'd have thought it was pretty obvious what I wanted from the original post really. As it happens I have dealt with it outside of using anything inside phpbb. This can be closed.
Locked

Return to “[3.0.x] Support Forum”