Skip to content

Commit 1c8812b

Browse files
committed
Merge branch 'develop'
2 parents adf9f95 + b2708b4 commit 1c8812b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/api/helpers/auth_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ def authenticate!
3232

3333
def authorize!(action, subject)
3434
unless abilities.allowed?(current_user, action, subject)
35-
# TODO: Un-comment on May 12, date of OAuth Scope Enforcement rollout
36-
# forbidden!
35+
forbidden!
3736
end
3837
end
3938

@@ -42,7 +41,8 @@ def require_scope!(scopes)
4241
scopes = [scopes] unless scopes.kind_of? Array
4342

4443
unless (find_access_token.scopes.to_a & scopes) == scopes
45-
forbidden!
44+
# TODO: Un-comment on May 12, date of OAuth Scope Enforcement rollout
45+
# forbidden!
4646
end
4747
end
4848

0 commit comments

Comments
 (0)