[Fix] Filter Active Users (#314) (#329)

Adding users to a group or setting permissions on a package now filter for active users. Also any inactive members of group/package get marked as such.

<img width="490" alt="{3B906C71-F3AE-41E4-A61C-B8377D79F685}.png" src="attachments/09cf149a-9d7a-4560-8ce7-9f3487527ee2">

Reviewed-on: enviPath/enviPy#329
Co-authored-by: Liam Brydon <lbry121@aucklanduni.ac.nz>
Co-committed-by: Liam Brydon <lbry121@aucklanduni.ac.nz>
This commit is contained in:
2026-02-12 20:20:16 +13:00
committed by jebus
parent 73f0202267
commit 58ab5b33e3
4 changed files with 12 additions and 4 deletions

View File

@ -93,7 +93,10 @@
>
{% csrf_token %}
<div class="flex items-center gap-2">
<span class="flex-1">{{ u.username }}</span>
<span class="flex-1"
>{{ u.username }}
{% if not u.is_active %}<i>(inactive)</i>{% endif %}</span
>
<input type="hidden" name="member" value="{{ u.url }}" />
<input type="hidden" name="action" value="remove" />
<button type="submit" class="btn btn-error btn-sm">