claimAccess function

Future<AccessModel> claimAccess(
  1. String appId,
  2. String ownerID
)

Implementation

Future<AccessModel> claimAccess(String appId, String ownerID) async {
  return await accessRepository(appId: appId)!.add(AccessModel(
      documentID: ownerID,
      appId: appId,
      privilegeLevel: PrivilegeLevel.ownerPrivilege,
      points: 0));
}