di-simple_auth 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/simple_auth/authentication.rb +1 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -105,7 +105,7 @@ module SimpleAuth
|
|
105
105
|
|
106
106
|
def permission_from_token(invoice)
|
107
107
|
if current_user
|
108
|
-
current_user.permissions(invoice).
|
108
|
+
current_user.permissions(invoice).max_by{|v| v.index }
|
109
109
|
elsif params[:token][10..-1]
|
110
110
|
::Permission.find_by_token(token)
|
111
111
|
end
|