mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Compare int to int
This commit is contained in:
parent
6c8e0ce176
commit
320da8b72a
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def admin_or_self_login_required
|
||||
unless User.find(session['user_id']).is_admin || session['user_id'] == params[:id]
|
||||
unless User.find(session['user_id']).is_admin || session['user_id'] == params[:id].to_i
|
||||
render :body => t('errors.user_unauthorized'), :status => 401
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue