Does the migrate effect in permissions?


after migrate some permissions remove from user
that was because the migrate
or some one login and remove the permissions?!

Hi,
Migrate will not affect your permissions unless you didn’t make any patches regarding any permissions
If it is affected by manual you can investigate by (Role Permissions Manager > Show Logs). This section shows who changed the permissions and when

This may help you
Thanks

do you mean if no patch happen no change will effect in the permission
as you see no patch effect in migrate command
then


i could not find the logs
could you help me, please?

Hi:

Check fixtures, if you are using that, permissions could be affected too …

image
@avc

Hi @manal_erpnext:

Maybe the file role.json is in fixtures folder? Maybe other app with fixtures for roles?

i will see the folder, thx
how could i avoid it in future?


as you see there are no fixtures of permissions just role not effect in the permissions of current user
i just add one custom app others from frappe i loaded them

Installed Apps

ERPNext:
Frappe Framework:
Frappe HR:
Payments:

I saw this, or something like this, sometimes on site migrating.
Processing role fixtures reset some permissions … Check if this could be your case.

do you mean that
before run
bench migrate
run bench export-fixtures