Browse Source

Allow conference hosts to edit workshops

development
Godwin 9 years ago
parent
commit
a63b5e1dc2
  1. 4
      app/models/workshop.rb

4
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)

Loading…
Cancel
Save