Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ class AddEditStructurePage extends HookConsumerWidget {
label: AdminTextConstants.structureBic,
validator: (value) {
if (value.isNotEmpty &&
value.replaceAll(" ", "").length != 11) {
value.replaceAll(" ", "").length != 11 &&
value.replaceAll(" ", "").length != 8) {
return AdminTextConstants.structureBicError;
}
return null;
Expand Down
4 changes: 3 additions & 1 deletion lib/phonebook/providers/is_phonebook_admin_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ final isAssociationPresidentProvider = Provider<bool>((ref) {
.firstWhere((completeMember) => completeMember.member.id == me.id)
.memberships
.firstWhere(
(membership) => membership.associationId == association.id,
(membership) =>
membership.associationId == association.id &&
membership.mandateYear == association.mandateYear,
)
.rolesTags
.contains(PhonebookTextConstants.presidentRoleTag)) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: titan
description: Titan est le frontend d'une application de gestion de la vie associative

publish_to: "none"
version: 2.1.0+166
version: 2.1.1+167
# https://dart.dev/tools/pub/pubspec : "Pub ignores all other fields."
minimal_hyperion_version: 5.0.2

Expand Down
Loading