hummingbird-me/kitsu-server

View on GitHub
app/policies/group_action_log_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
C
75%
class GroupActionLogPolicy < ApplicationPolicy
  def update?
    false
  end
  alias_method :create?, :update?
  alias_method :destroy?, :update?

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