rubyforgood/casa

View on GitHub
app/policies/supervisor_volunteer_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class SupervisorVolunteerPolicy < ApplicationPolicy
  def create?
    user.casa_admin? || user.supervisor? || user.volunteer?
  end

  def unassign?
    user.casa_admin? || user.supervisor?
  end

  def bulk_assignment?
    user.casa_admin? || user.supervisor?
  end
end