Added a priority system on the selection of userAuth that allows people with
multiple authGroups to receive the higher permission as possible.
Before this modification, if the group that gives the a lower permission appears
first on the loop the person would receive this permission, and not the higher one.
Signed-off-by: Bruno Nocera Zanette <firstname.lastname@example.org>