Fix admin menu not showing for some admins
There was a bug when finding the manager login, since we were only using the last digit of their user ID.
This commit is contained in:
@@ -330,7 +330,7 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.find_by_manager_login(manager_login)
|
||||
find_by(id: manager_login.last(1))
|
||||
find_by(id: manager_login.split("_").last)
|
||||
end
|
||||
|
||||
def interests
|
||||
|
||||
Reference in New Issue
Block a user