OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#43183] added sync for modifier
Eric Schubert9c34edc1a225
diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.tsindex f00296a71ae..2bf3ade8420 100644--- a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts@@ -132,8 +132,7 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit});this.allowEditing$ = this.currentUserService- .hasCapabilities$('file_links/manage', (this.resource.project as unknown&{ id:string }).id)- .pipe(this.untilDestroyed());+ .hasCapabilities$('file_links/manage', (this.resource.project as unknown&{ id:string }).id);}public removeFileLink(fileLink:IFileLink):void {diff --git a/modules/storages/app/services/storages/file_link_sync_service.rb b/modules/storages/app/services/storages/file_link_sync_service.rbindex 479e751085b..c4dab5c9e1a 100644--- a/modules/storages/app/services/storages/file_link_sync_service.rb+++ b/modules/storages/app/services/storages/file_link_sync_service.rb@@ -142,9 +142,11 @@ class Storages::FileLinkSyncService# "24" => { "status" => "Forbidden", "statuscode" => 403 }# In case of completely deleted file or other errors we might also get:# "24" = { "status" => "Not Found", "statuscode" => 404 }+ # rubocop:disable Metrics/AbcSizedef sync_single_file(file_link, origin_file_info_hash)file_link.origin_mime_type = origin_file_info_hash["mimetype"]file_link.origin_created_by_name = origin_file_info_hash["owner_name"]+ file_link.origin_last_modified_by_name = origin_file_info_hash["modifier_name"]file_link.origin_name = origin_file_info_hash["name"]file_link.origin_created_at = Time.zone.at(origin_file_info_hash["ctime"])file_link.origin_updated_at = Time.zone.at(origin_file_info_hash["mtime"])@@ -152,6 +154,8 @@ class Storages::FileLinkSyncServicefile_linkend+ # rubocop:enable Metrics/AbcSize+def set_error_for_file_links(storage_file_links)@service_result.result += storage_file_links.each { |file_link| file_link.origin_permission = :error }@service_result.success = false