blob: 7e206b67fdf25c6506cb85c9a2b36076458a01d1 (
plain)
1
2
3
4
5
6
7
8
|
-# User groups (only if the current user can edit or destroy them)
-#
- if user.user_groups.map{ |x| can?( :edit, x ) || can?( :destroy, x ) }.include?(true)
- if can?( :index, UserGroup )
%h2=t("user_groups.index.page_title")
- if user.user_groups.count > 0
= render "user_groups/index_core", :user_groups => user.user_groups.where(:tenant_id => tenant.id).order(:name)
= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => UserGroup}
|