mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-12 05:36:02 +00:00
Some selected club members can now make people subscribe and fix major security hole in board_member verification
This commit is contained in:
1 parent
e80f5b6f0f
commit
c56094eaaf
5 files changed
+26
-7
No files matched your search
@@ -106,7 +106,7 @@ class NewSubscription(CreateView):
|
||||
|
||||
def dispatch(self, request, *arg, **kwargs):
|
||||
res = super(NewSubscription, self).dispatch(request, *arg, **kwargs)
|
||||
if request.user.is_in_group(settings.SITH_MAIN_BOARD_GROUP):
|
||||
if request.user.can_create_subscription:
|
||||
return res
|
||||
raise PermissionDenied
|
||||
|
||||
|
||||
Reference in new issue
Block a user