| 144 | } |
| 145 | |
| 146 | String UserDbObject::CalculateConfigHash(const Dictionary::Ptr& configFields) const |
| 147 | { |
| 148 | String hashData = DbObject::CalculateConfigHash(configFields); |
| 149 | |
| 150 | User::Ptr user = static_pointer_cast<User>(GetObject()); |
| 151 | |
| 152 | Array::Ptr groups = user->GetGroups(); |
| 153 | |
| 154 | if (groups) { |
| 155 | groups = groups->ShallowClone(); |
| 156 | ObjectLock oLock (groups); |
| 157 | std::sort(groups->Begin(), groups->End()); |
| 158 | hashData += DbObject::HashValue(groups); |
| 159 | } |
| 160 | |
| 161 | return SHA256(hashData); |
| 162 | } |
nothing calls this directly
no test coverage detected