Could you help me call the role? I do not know if I explain myself very well? there is a function to call the name, surname, income and more but I do not know if I can call example: admin and below the call the role. admin: admin, user: user, user: collaborator, etc.
My friend you are a genius! and for users with two levels of permissions how do I apply a specific order?
I would add a column called "importance", this would be an integer column and you can set admin to 1, user to 2, whatever to 3, or however you want, and then add ORDER BY importance before the query turns into the array
Sorry...you call your order by BEFORE Limit
Many thanks @Brandin, It's a small step for a man, but a great leap for mankind.
If you want to display all permissions, we can help you with that too.
Yeah. I was just about to write a function for that when @Brandin beat me to it.
I also think it makes sense to just skip permission 1 (user) since everyone has it.
@karsen, @mudmin would you like to hear your thoughts?