Skip to content

Commit

Permalink
fix(sharing-ng): Fix setPassword call for spaceroot
Browse files Browse the repository at this point in the history
Requests to /raph/v1beta1/drives/{driveid}/root/permissions/{permissionid}setPassword
were rooted to the wrong method.
  • Loading branch information
rhafer committed Apr 8, 2024
1 parent 937078c commit 80ef8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/graph/pkg/service/v0/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func NewService(opts ...Option) (Graph, error) {
r.Route("/{permissionID}", func(r chi.Router) {
r.Delete("/", driveItemPermissionsApi.DeleteSpaceRootPermission)
r.Patch("/", driveItemPermissionsApi.UpdateSpaceRootPermission)
r.Post("/setPassword", driveItemPermissionsApi.SetLinkPassword)
r.Post("/setPassword", driveItemPermissionsApi.SetSpaceRootLinkPassword)
})
})
})
Expand Down

0 comments on commit 80ef8ca

Please sign in to comment.