diff options
Diffstat (limited to 'models/review.go')
-rw-r--r-- | models/review.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/review.go b/models/review.go index d456383d9c..ab275ecb26 100644 --- a/models/review.go +++ b/models/review.go @@ -9,6 +9,7 @@ import ( "strings" "code.gitea.io/gitea/models/db" + "code.gitea.io/gitea/models/unit" "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/timeutil" @@ -897,7 +898,7 @@ func CanMarkConversation(issue *Issue, doer *User) (permResult bool, err error) return false, err } - permResult = perm.CanAccess(AccessModeWrite, UnitTypePullRequests) + permResult = perm.CanAccess(AccessModeWrite, unit.TypePullRequests) if !permResult { if permResult, err = IsOfficialReviewer(issue, doer); err != nil { return false, err |