Skip to content

Commit fd12ef3

Browse files
authored
Merge pull request #1107 from concord-consortium/186530973-fix-glossary-edit-for-pas
fix: Missing edit link on glossaries for project admins [PT-186530973]
2 parents fb0aab1 + c86bc23 commit fd12ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/glossary.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def can_edit(user)
6262
if user.nil?
6363
false
6464
else
65-
user.id == self.user_id || user.admin?
65+
user.id == self.user_id || user.admin? || user.project_admin_of?(self.project)
6666
end
6767
end
6868

0 commit comments

Comments
 (0)