Skip to content

Commit 4d82cbf

Browse files
Enable reporting comments even if you are not the profile owner (#337)
I made report_comment use _assert_auth instead of _assert_permission so that you can report comments if you're not the profile owner. Signed-off-by: 50-scratch-tabs <197407676+50-scratch-tabs@users.noreply.github.com>
1 parent 31dfa03 commit 4d82cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scratchattach/site/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def report_comment(self, *, comment_id):
635635
Args:
636636
comment_id: The id of the comment that should be reported
637637
"""
638-
self._assert_permission()
638+
self._assert_auth()
639639
return requests.post(
640640
f"https://scratch.mit.edu/site-api/comments/user/{self.username}/rep/",
641641
headers = headers,

0 commit comments

Comments
 (0)