Skip to content

Commit 449d61f

Browse files
committed
Fix Controller Additions
1 parent ee7b77b commit 449d61f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connect/controller_additions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def current_access_token
1414
end
1515

1616
def current_oauth_scopes
17-
token = current_access_token && token.scopes || []
17+
token = (current_access_token && current_access_token.scopes) || []
1818
end
1919

2020
def has_oauth_scope? scope

0 commit comments

Comments
 (0)