canSubmit method
Check if the user can submit a doctype.
The permission cache needs to be loaded. If not, false is returned
.
Implementation
Future<bool> canSubmit(String doctype) async {
// not provided in bootinfo
final perms = doctypePerms[doctype];
if (perms != null) return perms[0].submit;
config.logger.e('Renovation Core'
'Permissions'
'Permission Cache not loaded to retrieve correct perm for canSubmit');
// no perms
return false;
}