Permalink
Browse files

Should have been using allowed_to_edit? rather than owns_or_collabora…

…tes?
  • Loading branch information...
1 parent a6bcf68 commit b85ea033c65fa498462ddca81bc43601d6801a23 @knowtheory knowtheory committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/account.rb
View
@@ -201,7 +201,7 @@ def shared?(resource)
end
def allowed_to_comment?( resource )
- [PREMODERATED,POSTMODERATED].include?( resource.access ) or owns_or_collaborates?(resource)
+ [PREMODERATED,POSTMODERATED].include?( resource.access ) or allowed_to_edit?(resource)
end
def owns_or_collaborates?(resource)

0 comments on commit b85ea03

Please sign in to comment.