Skip to content

Commit c86bc23

Browse files
committed
fix: Missing edit link on glossaries for project admins [PT-186530973]
The glossary used a method outside of cancan to set the editing ability.
1 parent fb0aab1 commit c86bc23

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)