Say I create a list of all moderators who have a specific permission enabled (view moderated threads). I can get the list of moderators via the getContentModerators() and getAllGeneralModerators() methods in the Moderator Model.
What I don't know is how I can iterate through the list of moderators to find those moderators who have that specific permission. Any ideas?
Russ, thank you, but what I meant was in a programmatic way.
Specifically, I am currently writing an add-on that should send out e-mails to all moderators who have the "view moderated threads" permission enabled. In vB, this was possible with a simple logical operation, like moderator.permissions2 && $this->registry->bf_misc_moderatorpermissions2['caneditvisitormessages']. Unfortunately, I am still learning to understand how xF is storing permissions and right now I am pretty clueless what would be the "official" way of doing it.