better selection of who can make people refill

This commit is contained in:
imperosol
2026-09-16 23:32:57 +02:00
parent 22bf38beaf
commit ee6b4d4b1e
3 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -204,7 +204,7 @@ class CounterClick(
res["student_card_fragment"] = StudentCardFormFragment.as_fragment()(
self.request, customer=self.customer
)
if self.object.can_refill():
if self.object.can_refill:
res["refilling_fragment"] = RefillingCreateView.as_fragment()(
self.request, customer=self.customer, counter=self.object
)
@@ -250,7 +250,7 @@ class RefillingCreateView(FragmentMixin, CreateView):
if not (
request.barmen
and request.barmen.issubset(self.counter.barmen_list)
and self.counter.can_refill()
and self.counter.can_refill
):
raise PermissionDenied