After running bench reset-perms all user lost permissions and only login is possible, nothing more.
What can be done to fix permissions?
- Without sql restore.
- Only Administrator user working will be fine.
After running bench reset-perms all user lost permissions and only login is possible, nothing more.
What can be done to fix permissions?
Try to run reload_doctype
for all doctypes with reset_permissions=True
from bench console
.
Also, please raise an issue in github about the issue with bench reset-perms
command.
We have found following solution:
– Dumping data for table tabDocPerm
LOCK TABLES tabDocPerm
WRITE;
/*!40000 ALTER TABLE tabDocPerm
DISABLE KEYS /
“PASTE HERE BEGINNIG WITH INSERT INTO”
/!40000 ALTER TABLE tabDocPerm
ENABLE KEYS */;
UNLOCK TABLES;
Now you have the latest data with only permissions restored from another backup.
Good Luck