diff --git a/lib/api/model/model.dart b/lib/api/model/model.dart index 614a784511..fc186d15aa 100644 --- a/lib/api/model/model.dart +++ b/lib/api/model/model.dart @@ -194,9 +194,9 @@ class User { String fullName; String dateJoined; bool isActive; // Really sometimes absent in /register, but we normalize that away; see [InitialSnapshot.realmUsers]. - bool isOwner; - bool isAdmin; - bool isGuest; + // bool isOwner; // obsoleted by [role]; ignore + // bool isAdmin; // obsoleted by [role]; ignore + // bool isGuest; // obsoleted by [role]; ignore bool? isBillingAdmin; // TODO(server-5) bool isBot; int? botType; // TODO enum @@ -240,9 +240,6 @@ class User { required this.fullName, required this.dateJoined, required this.isActive, - required this.isOwner, - required this.isAdmin, - required this.isGuest, required this.isBillingAdmin, required this.isBot, required this.botType, diff --git a/lib/api/model/model.g.dart b/lib/api/model/model.g.dart index 10c1c6b00c..0171278e4d 100644 --- a/lib/api/model/model.g.dart +++ b/lib/api/model/model.g.dart @@ -97,9 +97,6 @@ User _$UserFromJson(Map json) => User( fullName: json['full_name'] as String, dateJoined: json['date_joined'] as String, isActive: json['is_active'] as bool, - isOwner: json['is_owner'] as bool, - isAdmin: json['is_admin'] as bool, - isGuest: json['is_guest'] as bool, isBillingAdmin: json['is_billing_admin'] as bool?, isBot: json['is_bot'] as bool, botType: (json['bot_type'] as num?)?.toInt(), @@ -125,9 +122,6 @@ Map _$UserToJson(User instance) => { 'full_name': instance.fullName, 'date_joined': instance.dateJoined, 'is_active': instance.isActive, - 'is_owner': instance.isOwner, - 'is_admin': instance.isAdmin, - 'is_guest': instance.isGuest, 'is_billing_admin': instance.isBillingAdmin, 'is_bot': instance.isBot, 'bot_type': instance.botType, diff --git a/test/api/model/model_checks.dart b/test/api/model/model_checks.dart index c8261ba78f..71d199e864 100644 --- a/test/api/model/model_checks.dart +++ b/test/api/model/model_checks.dart @@ -8,9 +8,6 @@ extension UserChecks on Subject { Subject get fullName => has((x) => x.fullName, 'fullName'); Subject get dateJoined => has((x) => x.dateJoined, 'dateJoined'); Subject get isActive => has((x) => x.isActive, 'isActive'); - Subject get isOwner => has((x) => x.isOwner, 'isOwner'); - Subject get isAdmin => has((x) => x.isAdmin, 'isAdmin'); - Subject get isGuest => has((x) => x.isGuest, 'isGuest'); Subject get isBillingAdmin => has((x) => x.isBillingAdmin, 'isBillingAdmin'); Subject get isBot => has((x) => x.isBot, 'isBot'); Subject get botType => has((x) => x.botType, 'botType'); diff --git a/test/example_data.dart b/test/example_data.dart index 41abc88bc1..c13674edd6 100644 --- a/test/example_data.dart +++ b/test/example_data.dart @@ -88,9 +88,6 @@ User user({ fullName: fullName ?? 'A user', // TODO generate example names dateJoined: '2023-04-28', isActive: isActive ?? true, - isOwner: false, - isAdmin: false, - isGuest: false, isBillingAdmin: false, isBot: isBot ?? false, botType: null,