mardi 6 juin 2017

Rails 3 Devise. Admin can't change user data

I'm using gem Devise. I created model User and added a new field 'admin'. If user is admin he can change data other users and he can make other users as administrators. But he can't ... I can't change User data. What's the problem? It's all because for changing devise needs user password confirmation?

Aucun commentaire:

Enregistrer un commentaire