Skip to content

Commit

Permalink
Update internal/http/services/owncloud/ocdav/propfind.go
Browse files Browse the repository at this point in the history
Co-authored-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch>
  • Loading branch information
gmgigi96 and glpatcern committed May 11, 2023
1 parent ec3c5db commit 8b5d251
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/http/services/owncloud/ocdav/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ func (s *svc) newPropRaw(key, val string) *propertyXML {
}
}

func fixForOldOCM(ctx context.Context, md *provider.ResourceInfo) {
oldOCM := ctx.Value(ctxOldVersionOCM).(bool)
if oldOCM {
func supportLegacyOCMAccess(ctx context.Context, md *provider.ResourceInfo) {
ocm10 := ctx.Value(ctxOCM10).(bool)
if ocm10 {
// the path is something like /<token>/...
// we need to strip the token part as this
// is passed as username in the basic auth
Expand Down

0 comments on commit 8b5d251

Please sign in to comment.