Skip to content

Commit

Permalink
mod always allowed to edit story URL
Browse files Browse the repository at this point in the history
  • Loading branch information
pushcx committed Jul 26, 2022
1 parent cf52ab9 commit dfad80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/story.rb
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ def url=(u)
def url_is_editable_by_user?(user)
if self.new_record?
true
elsif user && user.is_moderator? && self.url.present?
elsif user && user.is_moderator?
true
else
false
Expand Down

0 comments on commit dfad80a

Please sign in to comment.