Add comment OAuth2 scope.

This commit is contained in:
Max Goodman
2012-03-14 15:25:54 -07:00
committed by Logan Hanks
parent deff9405da
commit 9f7bdd8113
2 changed files with 6 additions and 0 deletions

View File

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

View File

@@ -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.")
}
}