add check role function
Merge branch 'dev' of github.com:artop57/DoctorTask into dev