Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow meeting admin user to update a non admin user that shares all his meetings with requesting user. #2576
Allow meeting admin user to update a non admin user that shares all his meetings with requesting user. #2576
Changes from 7 commits
c13c1f2
130fbc9
f2ac306
a6d9665
56928aa
f4eec94
86208da
15a5365
37ba259
7c24289
3d0df2b
e46cffe
2a3398f
a8085b1
9f42c46
84398e4
8ee6d4a
1d07d85
e2e569d
e6fc78f
e2582d6
576b3f4
29a0e48
011f63d
d05d4cc
91b6d77
6287de2
3dec54d
87e80b4
90abbb0
b2827cc
b0c1179
cb64e6c
c3056ec
de6f279
42eb249
371d408
39f3d1e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is good that you have worked it into the scope, but if the way the scope checking works has been changed in the backend, the other services (mainly the client) need to be able to get the information required to calculate the same result via the scope presenter. This means meeting memberships and committee_management_ids need to somehow be part of what the scope presenter returns.
Look into how that presenters return value would optimally look after the new changes, change the wiki entry accordingly and change the get_user_scope_function in this presenter.
It is then only appropriate that the
check_for_admin_in_all_meetings
function should not calculate everything and get all data from scratch, but use the type of data calculated byget_user_scope
in the previous part of the calling function.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Moved the function to the user scope mixin. However, in some specific cases the meeting_ids cannot be obtained from
permstore
.