robregonm/yii2-auth — pull request #13 by cansozeri (2014-05-13 18:44:23+00:00)
Title: User Role

I think if we get user role in model, we can use it to ensure the superadmins by their role not username. I am using one role per user, so getRole function can be extended for more than one role per user.

With this getRole function I can use it in the form field to update or create user role at the same time with user forms.