| 14 | #include "plugin_utils.h" |
| 15 | |
| 16 | bool permInGroup(const std::string& perm, bz_APIStringList* groupPerms) { |
| 17 | for (unsigned int i = 0; i < groupPerms->size(); i++) { |
| 18 | if (strcasecmp(perm.c_str(), groupPerms->get(i).c_str()) == 0) { |
| 19 | return true; |
| 20 | } |
| 21 | } |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | std::vector<std::string> findGroupsWithPerms(const std::vector<std::string> &perms, bool skipLocal) { |
| 26 | std::vector<std::string> groupsWithPerms; |
no test coverage detected