I am setting up user management. I am trying to set different view access in role function.
Edit only if the user does not have a role - “Gestor de usuarios” And I have it Manage users mode.
Also what to hide the admin tole for example and Oscar user. Where should i make the sentence?
if user.get('username') == "Oscar": return 0 else: return 1 if role == "Administrador": return 0 else: return 1