capabilities_for_controllers.php
122 lines
| 1 | <?php |
| 2 | return [ |
| 3 | 'OsDashboardController' => [ |
| 4 | 'default' => [ 'booking__view' ], |
| 5 | ], |
| 6 | 'OsActivitiesController' => [ |
| 7 | 'default' => [ 'activity__view' ], |
| 8 | 'per_action' => [ |
| 9 | 'destroy' => [ 'activity__delete' ], |
| 10 | ], |
| 11 | ], |
| 12 | 'OsAddonsController' => [], |
| 13 | 'OsDefaultAgentController' => [], |
| 14 | 'OsAgentsController' => [ |
| 15 | 'default' => [ 'agent__edit' ], |
| 16 | 'per_action' => [ |
| 17 | 'edit_form' => [ 'agent__view' ], |
| 18 | 'index' => [ 'agent__view' ], |
| 19 | 'mini_profile' => [ 'agent__view' ], |
| 20 | 'new_form' => [ 'agent__create' ], |
| 21 | 'create' => [ 'agent__create' ], |
| 22 | 'destroy' => [ 'agent__delete' ], |
| 23 | ], |
| 24 | ], |
| 25 | 'OsAuthController' => [], |
| 26 | 'OsBookingsController' => [ |
| 27 | 'default' => [ 'booking__view' ], |
| 28 | 'per_action' => [ |
| 29 | 'view_booking_log' => [ 'activity__view' ], |
| 30 | 'change_status' => [ 'booking__edit' ], |
| 31 | 'update' => [ 'booking__edit' ], |
| 32 | 'create' => [ 'booking__create' ], |
| 33 | 'destroy' => [ 'booking__delete' ], |
| 34 | 'bulk_destroy' => [ 'booking__delete' ], |
| 35 | ], |
| 36 | ], |
| 37 | 'OsOrdersController' => [ |
| 38 | 'default' => [ 'booking__view' ], |
| 39 | 'per_action' => [ |
| 40 | 'view_order_log' => [ 'activity__view' ], |
| 41 | 'change_status' => [ 'booking__edit' ], |
| 42 | 'update' => [ 'booking__edit' ], |
| 43 | 'create' => [ 'booking__create' ], |
| 44 | 'destroy' => [ 'booking__delete' ], |
| 45 | ], |
| 46 | ], |
| 47 | 'OsCalendarsController' => [ |
| 48 | 'default' => [ 'booking__view' ], |
| 49 | ], |
| 50 | 'OsCustomerCabinetController' => [], |
| 51 | 'OsCustomersController' => [ |
| 52 | 'default' => [ 'customer__edit' ], |
| 53 | 'per_action' => [ |
| 54 | 'set_as_guest' => [ 'customer__edit' ], |
| 55 | 'destroy' => [ 'customer__delete' ], |
| 56 | 'new_form' => [ 'customer__create' ], |
| 57 | 'create' => [ 'customer__create' ], |
| 58 | 'query_for_booking_form' => [ 'customer__view' ], |
| 59 | 'edit_form' => [ 'customer__view' ], |
| 60 | 'mini_profile' => [ 'customer__view' ], |
| 61 | 'index' => [ 'customer__view' ], |
| 62 | 'inline_edit_form' => [ 'customer__view' ], |
| 63 | ], |
| 64 | ], |
| 65 | 'OsDebugController' => [], |
| 66 | 'OsIntegrationsController' => [], |
| 67 | 'OsNotificationsController' => [], |
| 68 | 'OsProcessJobsController' => [], |
| 69 | 'OsProcessesController' => [], |
| 70 | 'OsSearchController' => [ |
| 71 | 'default' => [ 'booking__view' ], |
| 72 | ], |
| 73 | 'OsServiceCategoriesController' => [ |
| 74 | 'default' => [ 'service__edit' ], |
| 75 | 'per_action' => [ |
| 76 | 'list_for_select' => [ 'service__view' ], |
| 77 | 'index' => [ 'service__view' ], |
| 78 | 'destroy' => [ 'service__delete' ], |
| 79 | 'create' => [ 'service__create' ], |
| 80 | ], |
| 81 | ], |
| 82 | 'OsServicesController' => [ |
| 83 | 'default' => [ 'service__edit' ], |
| 84 | 'per_action' => [ |
| 85 | 'index' => [ 'service__view' ], |
| 86 | 'create' => [ 'service__create' ], |
| 87 | 'destroy' => [ 'service__delete' ], |
| 88 | ], |
| 89 | ], |
| 90 | 'OsBundlesController' => [ |
| 91 | 'default' => [ 'bundle__edit' ], |
| 92 | 'per_action' => [ |
| 93 | 'index' => [ 'bundle__view' ], |
| 94 | 'create' => [ 'bundle__create' ], |
| 95 | 'destroy' => [ 'bundle__delete' ], |
| 96 | ], |
| 97 | ], |
| 98 | 'OsSettingsController' => [ |
| 99 | 'per_action' => [ |
| 100 | 'load_work_period_form' => [ 'agent__edit' ], |
| 101 | 'remove_chain_schedule' => [ 'agent__edit' ], |
| 102 | 'remove_custom_day_schedule' => [ 'agent__edit' ], |
| 103 | 'save_custom_day_schedule' => [ 'agent__edit' ], |
| 104 | 'custom_day_schedule_form' => [ 'agent__edit' ], |
| 105 | 'update_work_periods' => [ 'agent__edit' ], |
| 106 | ], |
| 107 | ], |
| 108 | 'OsStepsController' => [], |
| 109 | 'OsTransactionsController' => [ |
| 110 | 'default' => [ 'transaction__edit' ], |
| 111 | 'per_action' => [ |
| 112 | 'destroy' => [ 'transaction__delete' ], |
| 113 | 'index' => [ 'transaction__view' ], |
| 114 | ], |
| 115 | ], |
| 116 | 'OsUpdatesController' => [], |
| 117 | 'OsWizardController' => [], |
| 118 | 'OsMessagesController' => [ |
| 119 | 'default' => [ 'chat__edit' ], |
| 120 | ], |
| 121 | ]; |
| 122 |