Class: Decidim::Admin::UserManagerPermissions

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

Instance Method Summary collapse

Instance Method Details

#permissionsObject



6
7
8
9
10
11
12
13
14
15
# File 'app/permissions/decidim/admin/user_manager_permissions.rb', line 6

def permissions
  return permission_action unless user_manager? || user.admin?

  allow! if read_admin_dashboard_action?

  allow! if managed_user_action?
  allow! if user_action?

  permission_action
end