Commit 9bc06f59 authored by Matheus Horstmann's avatar Matheus Horstmann 🐴
Browse files

Revert "Hotfix: inferior_roles on users_controller"

parent c331f6cc
......@@ -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] == @currentProfessionalServicePlace.role
if roles_array[i] == self.role
return roles_array[0..i]
end
end
......
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