You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though I have available_permissions assigned in roles.py and ROLEPERMISSIONS_REGISTER_ADMIN set to True in settings.py, the permissions for each role are not syncing. I run python mangage.py sync_roles but the roles in roles.py do not have the permissions assigned to them.
My roles.py files looks like this:
from rolepermissions.roles import AbstractUserRole
@rduke199 this is pretty late and you've likely already figured this out, but having run across it myself recently, I think you just need to add the --reset_user_permissions flag when you run sync_roles.
Even though I have
available_permissions
assigned in roles.py andROLEPERMISSIONS_REGISTER_ADMIN
set to True in settings.py, the permissions for each role are not syncing. I runpython mangage.py sync_roles
but the roles in roles.py do not have the permissions assigned to them.My roles.py files looks like this:
The text was updated successfully, but these errors were encountered: