Add Cloudflare email and collaboration workflows
This commit is contained in:
@@ -207,7 +207,10 @@ func requiredScopeForPath(r *http.Request) (auth.Scope, bool) {
|
||||
case strings.HasPrefix(path, "/api/content/"):
|
||||
return auth.ScopeSyncRead, true
|
||||
case strings.HasPrefix(path, "/api/comments"):
|
||||
return auth.ScopeDocsRead, true
|
||||
if method == http.MethodGet {
|
||||
return auth.ScopeDocsRead, true
|
||||
}
|
||||
return auth.ScopeDocsWrite, true
|
||||
case strings.HasPrefix(path, "/api/notifications"):
|
||||
return auth.ScopeDocsRead, true
|
||||
case strings.HasPrefix(path, "/api/watch"):
|
||||
|
||||
Reference in New Issue
Block a user