diff --git a/app/controllers/mozilla_iam/admin/group_mappings_controller.rb b/app/controllers/mozilla_iam/admin/group_mappings_controller.rb index 0193348..f31b28f 100644 --- a/app/controllers/mozilla_iam/admin/group_mappings_controller.rb +++ b/app/controllers/mozilla_iam/admin/group_mappings_controller.rb @@ -11,7 +11,6 @@ module MozillaIAM def create mapping = GroupMapping.new(group_mappings_params) - mapping.authoritative = false if params[:authoritative].nil? mapping.group = Group.find_by(name: params[:group_name]) mapping.save! render json: success_json @@ -40,8 +39,7 @@ module MozillaIAM def group_mappings_params params.permit( :id, - :iam_group_name, - :authoritative + :iam_group_name ) end diff --git a/app/serializers/mozilla_iam/group_mapping_serializer.rb b/app/serializers/mozilla_iam/group_mapping_serializer.rb index 489ac64..beb56dc 100644 --- a/app/serializers/mozilla_iam/group_mapping_serializer.rb +++ b/app/serializers/mozilla_iam/group_mapping_serializer.rb @@ -2,8 +2,7 @@ module MozillaIAM class GroupMappingSerializer < ApplicationSerializer attributes :id, :group_name, - :iam_group_name, - :authoritative + :iam_group_name def group_name object.group.name diff --git a/assets/javascripts/discourse/models/mapping.js.es6 b/assets/javascripts/discourse/models/mapping.js.es6 index ab0e250..9102507 100644 --- a/assets/javascripts/discourse/models/mapping.js.es6 +++ b/assets/javascripts/discourse/models/mapping.js.es6 @@ -4,8 +4,7 @@ const Mapping = Ember.Object.extend({ asJSON () { return { group_name: this.get('group_name'), - iam_group_name: this.get('iam_group_name'), - authoritative: this.get('authoritative') + iam_group_name: this.get('iam_group_name') } }, diff --git a/assets/javascripts/discourse/templates/admin-plugins-mozilla-iam-mappings-edit.hbs b/assets/javascripts/discourse/templates/admin-plugins-mozilla-iam-mappings-edit.hbs index 8d5d956..f8c0ce5 100644 --- a/assets/javascripts/discourse/templates/admin-plugins-mozilla-iam-mappings-edit.hbs +++ b/assets/javascripts/discourse/templates/admin-plugins-mozilla-iam-mappings-edit.hbs @@ -10,11 +10,6 @@ {{text-field name='iam_group_name' value=model.iam_group_name}} -