Skip to content

Commit

Permalink
fix noMethodError on user_can_preview_component? method
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Jul 17, 2024
1 parent 3335996 commit bfb6894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decidim-core/app/models/decidim/share_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def use!
end

def expired?
expires_at.past?
expires_at.past? unless expires_at.nil?
end

def url
Expand Down

0 comments on commit bfb6894

Please sign in to comment.