We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents adf9f95 + b2708b4 commit 1c8812bCopy full SHA for 1c8812b
app/api/helpers/auth_helper.rb
@@ -32,8 +32,7 @@ def authenticate!
32
33
def authorize!(action, subject)
34
unless abilities.allowed?(current_user, action, subject)
35
- # TODO: Un-comment on May 12, date of OAuth Scope Enforcement rollout
36
- # forbidden!
+ forbidden!
37
end
38
39
@@ -42,7 +41,8 @@ def require_scope!(scopes)
42
41
scopes = [scopes] unless scopes.kind_of? Array
43
44
unless (find_access_token.scopes.to_a & scopes) == scopes
45
- forbidden!
+ # TODO: Un-comment on May 12, date of OAuth Scope Enforcement rollout
+ # forbidden!
46
47
48
0 commit comments