Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix display of public link shares in case avatars are disabled #37945

Merged
merged 1 commit into from
Sep 26, 2020

Conversation

pako81
Copy link
Contributor

@pako81 pako81 commented Sep 25, 2020

Description

Fix display of public link shares in case avatars are disabled

Related issue

https://github.com/owncloud/enterprise/issues/4190

Motivation and Context

This PR fixes the display of public link shares in case avatars are disabled through config.php. Previously, a "sharing is not allowed" message was displayed and public link was not visible in the sharing panel of the "All files" view. The reason for this was a missing check at https://github.com/owncloud/core/blob/master/apps/files/js/filelist.js#L1902 for avatars being enabled/disabled.

How Has This Been Tested?

Manually:

  • setting 'enable_avatars' => false, in config.php
  • create a folder and place some files inside that folder
  • share that folder with another user
  • (still as the same user) go in to the folder you just shared and try to create a public link on one of the files

Before this fix:

The public link was correctly created in DB but when leaving the sharing panel and trying to access it again via the "All files" view, a "sharing is not allowed" message was shown. It could be accessed via the "Shared with you" page only.

With this fix:

Public link is correctly displayed in the sharing panel of the "All files" view.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised
  • Changelog item

@pako81 pako81 added this to the development milestone Sep 25, 2020
@pako81 pako81 self-assigned this Sep 25, 2020
@update-docs
Copy link

update-docs bot commented Sep 25, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@codecov
Copy link

codecov bot commented Sep 25, 2020

Codecov Report

Merging #37945 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37945   +/-   ##
=========================================
  Coverage     64.71%   64.71%           
  Complexity    19442    19442           
=========================================
  Files          1286     1286           
  Lines         76022    76022           
  Branches       1336     1336           
=========================================
  Hits          49196    49196           
  Misses        26432    26432           
  Partials        394      394           
Flag Coverage Δ Complexity Δ
#javascript 54.06% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.88% <ø> (ø) 19442.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a444c5...8a75b5e. Read the comment docs.

Copy link
Contributor

@karakayasemi karakayasemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@karakayasemi karakayasemi merged commit 2a08381 into master Sep 26, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-sharing-avatars branch September 26, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants