3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 15:25:33 +00:00

Merge pull request #16611 from Godmartinz/MS_teams_deprecation_update

Reworked MS Teams deprecation warnings and notifications visibility
This commit is contained in:
snipe
2025-05-09 16:38:25 +01:00
committed by GitHub
4 changed files with 37 additions and 34 deletions

View File

@ -722,8 +722,8 @@ class Helper
// The check and message that the user is still using the deprecated version
$deprecations = [
'ms_teams_deprecated' => array(
'check' => !Str::contains(Setting::getSettings()->webhook_endpoint, 'workflows'),
'message' => 'The Microsoft Teams webhook URL being used will be deprecated Jan 31st, 2025. <a class="btn btn-primary" href="' . route('settings.slack.index') . '">Change webhook endpoint</a>'),
'check' => !Str::contains(Setting::getSettings()->webhook_endpoint, 'workflows') && (Setting::getSettings()->webhook_selected === 'microsoft'),
'message' => 'The Microsoft Teams webhook URL being used will be deprecated Dec 31st, 2025. <a class="btn btn-primary" href="' . route('settings.slack.index') . '">Change webhook endpoint</a>'),
];
// if item of concern is being used and its being used with the deprecated values return the notification array.