Class: API::Entities::Namespace

Inherits:
NamespaceBasic show all
Defined in:
lib/api/entities/namespace.rb

Instance Method Summary collapse

Instance Method Details

#expose_members_count_with_descendants?(namespace, opts) ⇒ Boolean

Returns:

  • (Boolean)

10
11
12
# File 'lib/api/entities/namespace.rb', line 10

def expose_members_count_with_descendants?(namespace, opts)
  namespace.kind == 'group' && Ability.allowed?(opts[:current_user], :admin_group, namespace)
end