Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
d5d50074
Verified
Commit
d5d50074
authored
Dec 15, 2018
by
Sébastiaan Versteeg
Browse files
Limit users to members with active membership
parent
b8bbd0d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/activemembers/api/views.py
View file @
d5d50074
...
...
@@ -11,7 +11,7 @@ from members.models import Member
class
NextCloudUsersView
(
ListAPIView
):
permission_classes
=
[
NextCloudPermission
]
queryset
=
Member
.
object
s
.
filter
(
queryset
=
Member
.
current_member
s
.
filter
(
pk__in
=
MemberGroupMembership
.
active_objects
.
values_list
(
'member_id'
,
flat
=
True
)
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment