(&self)
| 25 | |
| 26 | impl ModelValidator<RecordValidationError> for Allow { |
| 27 | fn validate(&self) -> ModelValidatorResult<RecordValidationError> { |
| 28 | for user_id in &self.users { |
| 29 | EnsureUser::id_exists(user_id)?; |
| 30 | } |
| 31 | for group_id in &self.user_groups { |
| 32 | EnsureUserGroup::id_exists(group_id)?; |
| 33 | } |
| 34 | Ok(()) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | impl Default for AuthScope { |
no outgoing calls