app/models/decidim/proposals/proposal.rb in decidim-proposals-0.25.0 vs app/models/decidim/proposals/proposal.rb in decidim-proposals-0.25.1

- old
+ new

@@ -276,10 +276,10 @@ # Checks whether the user can edit the given proposal. # # user - the user to check for authorship def editable_by?(user) - return true if draft? + return true if draft? && created_by?(user) !published_state? && within_edit_time_limit? && !copied_from_other_component? && created_by?(user) end # Checks whether the user can withdraw the given proposal.