Skip to content

Commit c4fcbdc

Browse files
author
Gregor Gololicic
committed
why are we checking auth on users project, aren't all mutable
1 parent 616ca16 commit c4fcbdc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

controller/projects.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,7 @@ func (p *Projects) GetProjectListForUser(userID uuid.UUID, auth *auth.Authentica
162162
exportedProjects := make([]*model.Project, len(projects))
163163

164164
for i, proj := range projects {
165-
if err := auth.CheckProjectAccess(ctx, proj); err != nil {
166-
exportedProjects[i] = proj.ExportPublicImmutable()
167-
} else {
168-
exportedProjects[i] = proj.ExportPublicMutable()
169-
}
165+
exportedProjects[i] = proj.ExportPublicMutable()
170166
}
171167

172168
return &model.ProjectList{Projects: exportedProjects}, nil

0 commit comments

Comments
 (0)