| 300 | } |
| 301 | |
| 302 | bool Permissions::Action::valid(time_t now_utc) const |
| 303 | { |
| 304 | if (validity.not_before != 0 && now_utc < validity.not_before) { |
| 305 | return false; |
| 306 | } |
| 307 | |
| 308 | if (validity.not_after != 0 && now_utc > validity.not_after) { |
| 309 | return false; |
| 310 | } |
| 311 | |
| 312 | return true; |
| 313 | } |
| 314 | |
| 315 | } |
| 316 | } |
no outgoing calls
no test coverage detected