MCPcopy Create free account
hub / github.com/dfinity/orbit / validate

Method validate

core/station/impl/src/models/permission.rs:27–35  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

25
26impl 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
38impl Default for AuthScope {

Calls

no outgoing calls