Skip to content
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

Merged
merged 2 commits into from
Nov 8, 2022
Merged

Conversation

Rineee
Copy link
Contributor

@Rineee Rineee commented Nov 7, 2022

@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?

@Rineee Rineee requested a review from fuzzylogic2000 November 7, 2022 11:08
Copy link
Contributor

@fuzzylogic2000 fuzzylogic2000 left a 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?

rine added 2 commits November 8, 2022 16:08
@Rineee Rineee force-pushed the ks-2022-11-support-phase-tests branch from 9d45fcc to 85ed36b Compare November 8, 2022 15:08
@@ -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) | \
Copy link
Contributor Author

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...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

@Rineee Rineee requested a review from fuzzylogic2000 November 8, 2022 15:10
@Rineee
Copy link
Contributor Author

Rineee commented Nov 8, 2022

@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!)

Copy link
Contributor

@fuzzylogic2000 fuzzylogic2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@fuzzylogic2000 fuzzylogic2000 merged commit 190539f into main Nov 8, 2022
@fuzzylogic2000 fuzzylogic2000 deleted the ks-2022-11-support-phase-tests branch November 8, 2022 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants