| 127 | } |
| 128 | |
| 129 | bool UserManager::IsValidForCreate(const std::string& token, const std::string& user_name) { |
| 130 | LOG(INFO) << "[user-manager] " << user_name << ", " << token; |
| 131 | return IsValidUserName(user_name) && !IsUserExist(user_name) && TokenToUserName(token) == "root"; |
| 132 | } |
| 133 | |
| 134 | bool UserManager::IsValidForDelete(const std::string& token, const std::string& user_name) { |
| 135 | LOG(INFO) << "[user-manager] " << user_name << ", " << token; |
no test coverage detected