Commit c331f6cc authored by Bruno Freitas Tissei's avatar Bruno Freitas Tissei
Browse files

Hotfix: inferior_roles on users_controller

parent d673300d
Pipeline #4894 skipped
......@@ -277,7 +277,7 @@ class Professionals::UsersController < ApplicationController
def inferior_roles
roles_array = ProfessionalServicePlace::ROLES
for i in 0..roles_array.length
if roles_array[i] == self.role
if roles_array[i] == @currentProfessionalServicePlace.role
return roles_array[0..i]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment