mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-28 17:16:21 +00:00
15 lines
283 B
Ruby
15 lines
283 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Política de acceso a las estadísticas
|
|
class SiteStatPolicy
|
|
attr_reader :site_stat, :usuarie
|
|
|
|
def initialize(usuarie, site_stat)
|
|
@usuarie = usuarie
|
|
@site_stat = site_stat
|
|
end
|
|
|
|
def index?
|
|
site_stat.site.usuarie? usuarie
|
|
end
|
|
end
|