summaryrefslogtreecommitdiff
path: root/app/views/users/_user_groups.html.haml
blob: 81191aef5f5c42469d07550cf8164ed805eee94f (plain)
1
2
3
4
5
6
7
-# 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)