mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-31 06:39:31 +00:00
Add groups, allow to ban users from counters and from buying alcohol
This commit is contained in:
1 parent
1c97c8a74f
commit
2daaf992f2
8 files changed
+155
-163
No files matched your search
+1
-1
@@ -319,7 +319,7 @@ class UserUpdateProfileView(UserTabsMixin, CanEditMixin, UpdateView):
|
||||
form_class = UserProfileForm
|
||||
current_tab = "edit"
|
||||
edit_once = ['profile_pict', 'date_of_birth', 'first_name', 'last_name']
|
||||
board_only = ['is_banned_alcohol']
|
||||
board_only = []
|
||||
|
||||
def remove_restricted_fields(self, request):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user