Skip to content

Commit

Permalink
BTHAB-257: Allow user to access quotation from Webform
Browse files Browse the repository at this point in the history
  • Loading branch information
olayiwola-compucorp committed Oct 20, 2023
1 parent fcd2253 commit 15aa91b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Civi/Api4/CaseSalesOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,14 @@ public static function computeTotalAmountInvoiced(bool $checkPermissions = FALSE
->setCheckPermissions($checkPermissions);
}

/**
* {@inheritDoc}
*/
public static function permissions() {
return [
'meta' => ['access CiviCRM'],
'default' => ['access CiviCRM'],
];
}

}
10 changes: 10 additions & 0 deletions Civi/Api4/CaseSalesOrderLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@
*/
class CaseSalesOrderLine extends DAOEntity {

/**
* {@inheritDoc}
*/
public static function permissions() {
return [
'meta' => ['access CiviCRM'],
'default' => ['access CiviCRM'],
];
}

}

0 comments on commit 15aa91b

Please sign in to comment.