Commit b1d700f8 authored by Ammar Alakkad's avatar Ammar Alakkad

Hide usage quote in sub-groups

parent 22c25d2d
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
%span %span
Audit Events Audit Events
- if License.feature_available?(:usage_quotas) -# Check if this is not a sub group
- if License.feature_available?(:usage_quotas) && @group.parent.nil?
= nav_link(path: 'usage_quota#index') do = nav_link(path: 'usage_quota#index') do
= link_to group_usage_quotas_path(@group), title: s_('UsageQuota|Usage Quotas') do = link_to group_usage_quotas_path(@group), title: s_('UsageQuota|Usage Quotas') do
%span %span
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment