-
Notifications
You must be signed in to change notification settings - Fork 6
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
Ks 2022 11 support phase tests #4655
Conversation
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.
Nice!
But I am also not sure about the initiator (and I guess with that also the group member, which we should also test). Do we do the same for other things like for the rating?
… different project accesses and test rules view_support and support_proposal
9d45fcc
to
85ed36b
Compare
@@ -35,22 +37,33 @@ def phase_allows_support(user, item): | |||
@rules.predicate | |||
def is_allowed_support_item(user, item): | |||
if item: | |||
return rules_predicates.is_superuser(user) | \ | |||
return is_allowed_moderate_project(user, item) | \ |
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.
So I think this was missing, right? Now moderators, initiators, group members should have more permissions...
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.
Yes!
@fuzzylogic2000 I changed the rules again (see comment) and the tests accordingly, do you want to check again? If its ok like this, then we could maybe already merge, so Caro can test? And I do the templatetag tests in another PR and maybe you could rebase and add the group member stuff (or I can also do it!) |
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.
Cool!
@fuzzylogic2000 I changed the is_allowed_view_support predicate to also consider project access and live context. But I am not sure if the moderator/initiator permissions are all good there?