-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix not displayed structure level in LoS #866
Comments
This are the current definitions, if the user can see the collections: openslides-autoupdate-service/internal/restrict/collection/structure_level.go Lines 11 to 15 in 80c2139
openslides-autoupdate-service/internal/restrict/collection/structure_level_list_of_speakers.go Lines 11 to 15 in 80c2139
What should it be in the future? Is it correct to say, that a user can see a structure level, if he can see the corresponding meeting_user? What about the |
Seems to be that the definition for the countdown (meaning |
To refer to another collection is good for performance, because there is a cache. If it was already checked, that the request user can see user X, then it is just a cache lookup. If there is another (complicated) condition, then it could be bad for performance. I think that every time, a user requests a structe_level, he also requests the meeting_user and user. @Elblinator only asked for the case, that the user can see himself. But I don't think, that this is enough. If the user does not have the permission to see users or list of speakers and he looks at a motion with a submitter, then he can not see the structure level of this user. |
You are right, if we want to keep the old structure level behaviour from when it was a simple string, this would be the logical conclusion. So the new rule would be:
And I also agree with this change ;) |
I agree! |
Is this still needed? I can not remember, why I did not implement in yet. Should I do it now? |
Yes |
Current behaviour:
If a participant is only allowed to put themselves on a LoS (is not allowed to manage or see the LoS) their own structure level is not displayed
Reproduction:
autoupdate from the delegate:
autoupdate from the admin:
Wanted behaviour:
As a participant you should be able to see your own structure level
Note: You should only be able to see the structure level countdown IF you are allowed to manage or see the LoS
The text was updated successfully, but these errors were encountered: