hummingbird-me/kitsu-server

View on GitHub
app/policies/group_invite_policy.rb

Summary

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

  def create?
    has_group_permission? :members
  end

  def update?
    has_group_permission? :members
  end

  def destroy?
    has_group_permission? :members
  end

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