mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
Add comment OAuth2 scope.
This commit is contained in:
@@ -962,6 +962,7 @@ class ApiController(RedditController, OAuth2ResourceController):
|
||||
jquery(".content").replace_things(item, True, True, wrap = wrapper)
|
||||
jquery(".content .link .rank").hide()
|
||||
|
||||
@require_oauth2_scope("comment")
|
||||
@validatedForm(VUser(),
|
||||
VModhash(),
|
||||
VRatelimit(rate_user = True, rate_ip = True,
|
||||
|
||||
@@ -42,6 +42,11 @@ scope_info = {
|
||||
"id": "identity",
|
||||
"name": _("My Identity"),
|
||||
"description": _("Access my reddit username and signup date.")
|
||||
},
|
||||
"comment": {
|
||||
"id": "comment",
|
||||
"name": _("Commenting"),
|
||||
"description": _("Submit comments from my account.")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user