formatting

This commit is contained in:
Denis Duliçi
2020-12-26 16:26:31 +03:00
parent d6e9343909
commit ed33992643
2 changed files with 11 additions and 5 deletions

View File

@@ -19,6 +19,8 @@ class SetPermissionControllerForApi
return;
}
// api/contacts?type=customer
// api/contacts?type=vendor
if ($event->table == 'contacts') {
switch ($event->type) {
case 'customer':
@@ -30,6 +32,8 @@ class SetPermissionControllerForApi
}
}
// api/documents?type=invoice
// api/documents?type=bill
if ($event->table == 'documents') {
switch ($event->type) {
case 'invoice':
@@ -41,6 +45,8 @@ class SetPermissionControllerForApi
}
}
// api/transactions?type=income
// api/transactions?type=expense
if ($event->table == 'transactions') {
switch ($event->type) {
case 'income':