hummingbird-me/kitsu-server

View on GitHub
app/policies/group_report_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
63%
class GroupReportPolicy < ApplicationPolicy
  include GroupPermissionsHelpers

  def create?
    member.present?
  end

  def update?
    is_owner? || has_group_permission?(:content)
  end

  def destroy?
    false
  end

  class Scope < Scope
    def resolve
      scope.visible_for(user)
    end
  end
end