News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Checking a bunch of board permissions with one database query?

Started by Charles Hill, October 11, 2008, 04:16:04 PM

Previous topic - Next topic

Charles Hill

I have been trying to develop a way to check a bunch of board permissions with a single query instead of using a different allowedTo() for each permission.  The argument for the function would be an array of different board permissions and the returned value would be an array of those permissions where the keys are the permissions and the values are true/false.  Anyone have any ideas?

Advertisement: