mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
13 lines
440 B
Ruby
13 lines
440 B
Ruby
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
class SystemReport::Plugin::Entities::User < SystemReport::Plugin
|
|
DESCRIPTION = __('Customer and agent ratio (role based user counts)').freeze
|
|
|
|
def fetch
|
|
{
|
|
'Agents' => User.with_permissions('ticket.agent').count,
|
|
'Customer' => User.with_permissions('ticket.customer').count,
|
|
'LastLogin' => User.maximum(:last_login),
|
|
}
|
|
end
|
|
end
|