Role Permission Manager not working for System Manager on Custom DocTypes

Hi ,

Getting the error below when trying to update role permissions for a Custom DocType via the Role Permission Manager:

Non administrator user can not set the role System Manager to the custom doctype

Note that it doesn’t matter what Role I’m trying to set the permission for, it always throws the same error stated above

Hope this can be fixed soon

Thanks

Created a Github Issue: