-
Notifications
You must be signed in to change notification settings - Fork 11
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
[FC-0049] feat: Update permissions to remove object tags #188
[FC-0049] feat: Update permissions to remove object tags #188
Conversation
Thanks for the pull request, @ChrisChV! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
* chore: Bump version * fix: Issue with remove object tag permission
da67904
to
c791682
Compare
|
||
This rule could be defined in other apps for proper permission checking. | ||
""" | ||
return True |
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.
Can you move this down below can_change_object_tag_objectid
? Also the default value shouldn't be True - the default value should be the same as can_change_object_tag_objectid
, so just call that function and return the same value.
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.
@bradenmacdonald Updated here bf49f69
@@ -874,7 +874,8 @@ def test_retrieve_object_tags_query_count(self): | |||
Test how many queries are used when retrieving object tags and permissions | |||
""" | |||
expected_perm = True | |||
object_id, sort_test_applied_result = self.prepare_for_sort_test(expected_perm) | |||
expoected_remove_perm = False | |||
object_id, sort_test_applied_result = self.prepare_for_sort_test(expoected_remove_perm) |
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.
Minor typo: expoected_remove_perm
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.
Fixed: 0df63a1
@ChrisChV 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Description
This updates rules to add
can_remove_object_tag_objectid
to Objet tag viewsSupporting information
Testing instructions