From a63b5e1dc2f014995cab44d9e603139cbe819c01 Mon Sep 17 00:00:00 2001 From: Godwin Date: Sun, 13 Sep 2015 19:05:56 -0700 Subject: [PATCH] Allow conference hosts to edit workshops --- app/models/workshop.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/workshop.rb b/app/models/workshop.rb index d8643e2..90b49db 100644 --- a/app/models/workshop.rb +++ b/app/models/workshop.rb @@ -28,11 +28,11 @@ class Workshop < ActiveRecord::Base end def can_edit?(user) - creator?(user) + creator?(user) || conference.host?(user) end def can_delete?(user) - creator?(user) + creator?(user) || conference.host?(user) end def can_show_interest?(user)