lib/simple_auth/authentication.rb in di-simple_auth-0.2.7 vs lib/simple_auth/authentication.rb in di-simple_auth-0.2.8

- old
+ new

@@ -102,10 +102,10 @@ ::User.find_by_remember_token(token) end end def permission_from_token(invoice) - if _token = params[:token][10..-1] + if _token = params[:token][12..-1] ::Permission.find_by_token(_token) elsif current_user current_user.permissions(invoice).max_by{|v| v.index } end end \ No newline at end of file