<commit_before>module Ecm::Rbac
  module Backend
    class PermissionsController < Itsf::Backend::Resource::BaseController
      def self.resource_class
        Ecm::Rbac::Permission
      end

      private

      def permitted_params
        params.require(:permission).except!(:user_ids).permit(:identifier, :enabled_from, :enabled_to, role_ids: [])
      end
    end
  end
end<commit_msg>Fixed parameters not being exlucded.<commit_after>module Ecm::Rbac
  module Backend
    class PermissionsController < Itsf::Backend::Resource::BaseController
      def self.resource_class
        Ecm::Rbac::Permission
      end

      private

      def permitted_params
        params.require(:permission).reject! { |k,v| k == 'user_ids' }.permit(:identifier, :enabled_from, :enabled_to, role_ids: [])
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10097323600973236, 'fraction_numerical': 0.0, 'mean_word_length': 3.424731182795699, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4937275', 'n_tokens_mistral': 248, 'n_tokens_neox': 240, 'n_words': 51}