vintasoftware / django-role-permissions

A django app for role based permissions.
http://django-role-permissions.readthedocs.org/
MIT License
728 stars 114 forks source link

Updating roles question #129

Open rsb177 opened 3 years ago

rsb177 commented 3 years ago

I was testing the library out to see if it would work for my project but noticed that if I add a permission to a role, it doesn't add it to anybody with the role already. I saw the reset roles command, but it said that is only recommended for development. What's the recommended way to handle making changes to a role for existing users?

filipeximenes commented 3 years ago

Hi @rsb177, the only reason the command is not recommended for production is because it might be too inefficient, but of course this will vary depending on your project context. The recommended approach is to either review the code of the command and evaluate if it works in your setup or to write your own custom script.