Add branding support to departments and related routes
This commit introduces changes to include branding information in departments. Updates were made to routes, forms, and objects to handle branding IDs and enforce validation. Additionally, a method call was added to track object changes when branding is updated.
This commit is contained in:
@@ -54,7 +54,8 @@ class departmentsRoute
|
||||
'economic_department_id' => (int)$department['economic_department_id'],
|
||||
'created_at' => (string)$department['created_at'],
|
||||
'updated_at' => (string)$department['updated_at'],
|
||||
'dimension' => (int)$department['dimension']
|
||||
'dimension' => (int)$department['dimension'],
|
||||
'branding' => (int)$department['branding'],
|
||||
];
|
||||
// If the user has the permission to view the slack webhook, add it to the response
|
||||
if ($user->hasPermission('view_slack_webhook')) {
|
||||
|
||||
Reference in New Issue
Block a user