| 561 | } |
| 562 | |
| 563 | bool stringInList(const std::string& str, const std::vector<std::string> stringList) { |
| 564 | for (std::vector<std::string>::const_iterator itr = stringList.begin(); itr != stringList.end(); itr++) { |
| 565 | if (compare_nocase(str, *itr) == 0) { |
| 566 | return true; |
| 567 | } |
| 568 | } |
| 569 | return false; |
| 570 | } |
| 571 | |
| 572 | void BZFSHTTPAuth::addPermToLevel(int level, const std::string& perm) { |
| 573 | if (level <= 0) { |
no test coverage detected