decidim-admin/app/models/decidim/admin/abilities/admin_user.rb in decidim-0.1.0 vs decidim-admin/app/models/decidim/admin/abilities/admin_user.rb in decidim-0.2.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + module Decidim module Admin module Abilities # Defines the abilities for a user in the admin section. Intended to be # used with `cancancan`. @@ -36,10 +37,10 @@ can [:destroy], [User] do |user_to_destroy| user != user_to_destroy end - can [:index, :verify], UserGroup + can [:index, :verify, :reject], UserGroup end end end end end