Extended the list of allowed file extensions and MIME types to include AVIF format in both backend file validation and the file input field for logo uploads. This update ensures compatibility with modern image formats.
Introduced a mechanism to track and log potentially unsafe files skipped during the restore process. These files are collected in an array and displayed as warnings before exiting, improving transparency and debugging capability.
`$results` did not include the `useraccountcontrol` and thus rendered the fallback logic void when `active_flag` was blank.
Added a condition to check if `active_flag` is blank and only then add `useraccountcontrol` to the ldap query since it is then a requirement in accordance with "we respect the userAccountControl attribute" text in the `admin/ldap` route.
[`elseif' will become true when `active_flag` is blank](b141945add/app/Console/Commands/LdapSync.php (L364))
There is a new validator introduced that checks on object update (assets, users, etc.) if the company matches the locations company.
In case of the creation of a new location it must be checked that the parent matches the own company.
On updating a location a check for every related object must be made to see if the company matches the location.
Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
Before activating scoped location all locations and their related objects will be checked.
If there are locations with different companies than the related objects error out.
Because this operation is quite slow, bail out on the first inconsistent entry.
There is a new artisan command introduced that checks every location.
Depending on the size of the database, this will take very long.
Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>