Skip to content

Commit

Permalink
fix(server): all roles should be able to publish item by default (#1268)
Browse files Browse the repository at this point in the history
imp
  • Loading branch information
yk-eukarya authored Oct 17, 2024
1 parent b247456 commit 6029152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/internal/usecase/interactor/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package interactor
import (
"context"
"errors"

"github.com/reearth/reearth-cms/server/internal/usecase"
"github.com/reearth/reearth-cms/server/internal/usecase/gateway"
"github.com/reearth/reearth-cms/server/internal/usecase/interfaces"
Expand Down Expand Up @@ -62,7 +63,7 @@ func (i *Project) Create(ctx context.Context, p interfaces.CreateProjectParam, o
if len(p.RequestRoles) > 0 {
pb = pb.RequestRoles(p.RequestRoles)
} else {
pb = pb.RequestRoles([]workspace.Role{workspace.RoleOwner, workspace.RoleMaintainer, workspace.RoleWriter, workspace.RoleReader})
pb = pb.RequestRoles([]workspace.Role{})
}

proj, err := pb.Build()
Expand Down

0 comments on commit 6029152

Please sign in to comment.