hasPerm abstract method

Future<bool> hasPerm({
  1. required String? doctype,
  2. required PermissionType pType,
  3. int? permLevel,
  4. String? docname,
})

Returns boolean whether the user has perm pType for a particular doctype.

Implementation

Future<bool> hasPerm(
    {required String? doctype,
    required PermissionType pType,
    int? permLevel,
    String? docname});