rubycentral/cfp-app

View on GitHub
app/policies/speaker_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
class SpeakerPolicy < ApplicationPolicy

  def new?
    @user.organizer_for_event?(current_event)
  end

  def create?
    @user.organizer_for_event?(current_event)
  end

  def edit?
    @user.organizer_for_event?(current_event)
  end

  def update?
    @user.organizer_for_event?(current_event)
  end

  def destroy?
    @user.organizer_for_event?(current_event)
  end

end