di-simple_auth 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/lib/simple_auth/authentication.rb +2 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
|
@@ -106,8 +106,8 @@ module SimpleAuth
|
|
|
106
106
|
def permission_from_token(invoice)
|
|
107
107
|
if current_user
|
|
108
108
|
current_user.permissions(invoice).max_by{|v| v.index }
|
|
109
|
-
elsif params[:token][10..-1]
|
|
110
|
-
::Permission.find_by_token(
|
|
109
|
+
elsif _token = params[:token][10..-1]
|
|
110
|
+
::Permission.find_by_token(_token)
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
113
|
|