Skip to content

Commit

Permalink
fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Oct 26, 2023
1 parent edcb8d8 commit d8baef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/spaces/manager/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func projectBelongToUser(user *userpb.User, project *SpaceDescription) (*provide
return conversions.NewManagerRole().CS3ResourcePermissions(), true
}
if slices.Contains(user.Groups, project.Readers) {
return conversions.NewReaderRole().CS3ResourcePermissions(), true
return conversions.NewViewerRole().CS3ResourcePermissions(), true
}
if slices.Contains(user.Groups, project.Writers) {
return conversions.NewEditorRole().CS3ResourcePermissions(), true
Expand Down

0 comments on commit d8baef5

Please sign in to comment.