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