MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / permInGroup

Function permInGroup

plugins/plugin_utils/plugin_groups.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "plugin_utils.h"
15
16bool 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
25std::vector<std::string> findGroupsWithPerms(const std::vector<std::string> &perms, bool skipLocal) {
26 std::vector<std::string> groupsWithPerms;

Callers 2

findGroupsWithPermsFunction · 0.85
findGroupsWithPermFunction · 0.85

Calls 3

c_strMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected