mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Merge branch '3.8' into fix-latest-merge
Conflicts: README.md composer.json composer.lock config/configuration.sample.yml lib/Alchemy/Phrasea/Application/Api.php lib/Alchemy/Phrasea/Controller/Admin/TaskManager.php lib/Alchemy/Phrasea/Controller/Api/Oauth2.php lib/Alchemy/Phrasea/Controller/Prod/Basket.php lib/Alchemy/Phrasea/Core/Event/Subscriber/ApiExceptionHandlerSubscriber.php lib/Alchemy/Phrasea/Core/Provider/RegistrationServiceProvider.php lib/Alchemy/Phrasea/Core/Version.php lib/classes/API/V1/adapter.php lib/classes/API/V1/result.php lib/classes/module/console/schedulerStart.php lib/classes/module/console/schedulerState.php lib/classes/module/console/schedulerStop.php lib/classes/module/console/taskrun.php lib/classes/set/export.php lib/conf.d/_GV_template.inc lib/conf.d/configuration.yml templates/web/admin/setup.html.twig templates/web/admin/tasks/list.html.twig templates/web/api/auth/end_user_authorization.html.twig templates/web/prod/actions/Feedback/list.html.twig templates/web/prod/actions/publish/publish.html.twig templates/web/prod/upload/upload.html.twig tests/classes/api/v1/api_v1_adapterTest.php tests/classes/api/v1/api_v1_resultTest.php
This commit is contained in:
@@ -777,8 +777,8 @@ class set_export extends set_abstract
|
||||
$log["poids"] = $obj["size"];
|
||||
$log["shortXml"] = $app['serializer.caption']->serialize($record_object->get_caption(), CaptionSerializer::SERIALIZE_XML);
|
||||
$tmplog[$record_object->get_base_id()][] = $log;
|
||||
if (!$anonymous && $o == 'document') {
|
||||
$app['acl']->get($app['authentication']->getUser())->remove_remaining($record_object->get_base_id());
|
||||
if (!$anonymous && $o == 'document' && null !== $app['authentication']->getUser()) {
|
||||
$ $app['acl']->get($app['authentication']->getUser())->remove_remaining($record_object->get_base_id());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -788,7 +788,7 @@ class set_export extends set_abstract
|
||||
|
||||
$list_base = array_unique(array_keys($tmplog));
|
||||
|
||||
if (!$anonymous) {
|
||||
if (!$anonymous && null !== $app['authentication']->getUser()) {
|
||||
$sql = "UPDATE basusr
|
||||
SET remain_dwnld = :remain_dl
|
||||
WHERE base_id = :base_id AND usr_id = :usr_id";
|
||||
|
Reference in New Issue
Block a user