| |
Authorization::Allow => {
|
| |
self.action(action, id, author, timestamp, concurrent, doc, repo)
|
| |
}
|
| - |
Authorization::Deny => Err(Error::NotAuthorized(author, action)),
|
| + |
Authorization::Deny => Err(Error::NotAuthorized(author, Box::new(action))),
|
| |
Authorization::Unknown => {
|
| |
// In this case, since there is not enough information to determine
|
| |
// whether the action is authorized or not, we simply ignore it.
|
| |
patch.action(action, op.id, op.author, op.timestamp, &[], &doc, repo)?;
|
| |
}
|
| |
Authorization::Deny => {
|
| - |
return Err(Error::NotAuthorized(op.author, action));
|
| + |
return Err(Error::NotAuthorized(op.author, Box::new(action)));
|
| |
}
|
| |
Authorization::Unknown => {
|
| |
// Note that this shouldn't really happen since there's no concurrency in the
|