Skip to content

Commit

Permalink
Merge branch 'release/v0.0.76'
Browse files Browse the repository at this point in the history
* release/v0.0.76:
  fix: edit perm get project detail
  • Loading branch information
namnhce committed Mar 21, 2023
2 parents 95aaea5 + 89a33c7 commit 3281f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/handler/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ func (h *handler) Details(c *gin.Context) {
return
}

if !authutils.HasPermission(userInfo.Permissions, model.PermissionProjectsReadFullAccess) && !authutils.HasPermission(userInfo.Permissions, model.PermissionEmployeesReadProjectsReadActive) {
if !authutils.HasPermission(userInfo.Permissions, model.PermissionProjectsReadFullAccess) && !authutils.HasPermission(userInfo.Permissions, model.PermissionProjectsReadReadActive) {
_, ok := userInfo.Projects[rs.ID]
if !ok || !model.IsUserActiveInProject(userInfo.UserID, rs.ProjectMembers) {
c.JSON(http.StatusNotFound, view.CreateResponse[any](nil, nil, errs.ErrProjectNotFound, nil, ""))
Expand Down

0 comments on commit 3281f52

Please sign in to comment.