Class: Decidim::UserManagerPermissions

Inherits:
DefaultPermissions show all
Defined in:
app/permissions/decidim/user_manager_permissions.rb

Instance Method Summary collapse

Methods inherited from DefaultPermissions

#initialize

Constructor Details

This class inherits a constructor from Decidim::DefaultPermissions

Instance Method Details

#permissionsObject



5
6
7
8
9
10
11
12
# File 'app/permissions/decidim/user_manager_permissions.rb', line 5

def permissions
  if user_manager?
    allow! if read_admin_dashboard_action?
    allow! if impersonate_managed_user_action?
  end

  permission_action
end