This commit is contained in:
MatthieuHR committed 2026-11-09 09:27:53 +00:00
1 parent fc961f6511
commit fb25e4586e
6 files changed
+99 -47

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ if TYPE_CHECKING:
def can_be_edited_by(user: User, club: Club):
return user.groups.contains(club.stock_group) or user.is_root
return user.is_in_group(pk=club.stock_group) or user.is_root
def can_be_view_by(user: User, club: Club, stock: Stock):