class Decidim::Meetings::Meeting

def withdrawable_by?(user)

past meetings cannot be withdrawn
user - the user to check for withdrawability.

Checks whether the user can withdraw the given meeting.
def withdrawable_by?(user)
  user && !withdrawn? && !past? && authored_by?(user)
end