      it "returns the right category group permission for a staff user ordered by ascending group name" do
        json = described_class.new(category, scope: Guardian.new(admin), root: false).as_json

        expect(json[:group_permissions]).to eq([
          { permission_type: CategoryGroup.permission_types[:readonly], group_name: group.name },
          { permission_type: CategoryGroup.permission_types[:full], group_name: private_group.name },
          { permission_type: CategoryGroup.permission_types[:full], group_name: user_group.name },
          { permission_type: CategoryGroup.permission_types[:readonly], group_name: 'everyone' },
        ])
      end
During installation, installed file permissions are set to allow anyone to modify those files.