mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 22:38:09 -05:00
Add "modlog" oauth2 scope.
This commit is contained in:
committed by
Neil Williams
parent
1ac52595b6
commit
d2e060f0b2
@@ -431,6 +431,7 @@ class FrontController(RedditController, OAuth2ResourceController):
|
||||
pane = listing.listing()
|
||||
return pane
|
||||
|
||||
@require_oauth2_scope("modlog")
|
||||
@prevent_framing_and_css(allow_cname_frame=True)
|
||||
@paginated_listing(max_page_size=500, backend='cassandra')
|
||||
@validate(mod=nop('mod'),
|
||||
|
||||
@@ -126,6 +126,12 @@ class OAuth2Scope:
|
||||
"Manage the configuration, sidebar, and CSS"
|
||||
" of subreddits I moderate."),
|
||||
},
|
||||
"modlog": {
|
||||
"id": "modlog",
|
||||
"name": _("Moderation Log"),
|
||||
"description": _(
|
||||
"Access the moderation log in subreddits I moderate."),
|
||||
},
|
||||
"modtraffic": {
|
||||
"id": "modtraffic",
|
||||
"name": _("Subreddit Traffic"),
|
||||
|
||||
Reference in New Issue
Block a user