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

Hide add to your OC at the public page when sending shares is not all… #37232

Merged
merged 3 commits into from
Apr 20, 2020

Conversation

VicDeo
Copy link
Member

@VicDeo VicDeo commented Apr 9, 2020

…owed by admin

Description

When Allow users on this server to send shares to other servers is unchecked at the Settings->Admin-Sharing there should be no 'Add to your ownCloud' button
Bonus: switch to EventDispatcher as #31944 allows it

Related Issue

How Has This Been Tested?

  1. Create a public link

  2. Tick Settings->Admin-Sharing Allow users on this server to send shares to other servers

  3. open the public link in another browser
    Expected: 'Add to your ownCloud' at the public page

  4. Create a public link

  5. Untick Settings->Admin-Sharing Allow users on this server to send shares to other servers

  6. open the public link in another browser
    Expected: There is NO 'Add to your ownCloud' at the public page

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, see TEMPLATE

@VicDeo VicDeo added this to the development milestone Apr 9, 2020
@VicDeo VicDeo self-assigned this Apr 9, 2020
@VicDeo VicDeo force-pushed the bugfix/e3291 branch 2 times, most recently from 39fae09 to d74739d Compare April 9, 2020 15:35
@codecov
Copy link

codecov bot commented Apr 9, 2020

Codecov Report

Merging #37232 into master will increase coverage by 0.01%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #37232      +/-   ##
============================================
+ Coverage     64.51%   64.52%   +0.01%     
  Complexity    19155    19155              
============================================
  Files          1267     1266       -1     
  Lines         74911    74912       +1     
  Branches       1331     1331              
============================================
+ Hits          48329    48340      +11     
+ Misses        26190    26180      -10     
  Partials        392      392              
Flag Coverage Δ Complexity Δ
#javascript 54.14% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.68% <75.00%> (+0.01%) 19155.00 <0.00> (ø)
Impacted Files Coverage Δ Complexity Δ
apps/federatedfilesharing/appinfo/app.php 0.00% <ø> (ø) 0.00 <0.00> (ø)
...s/federatedfilesharing/lib/AppInfo/Application.php 48.22% <75.00%> (+6.62%) 9.00 <0.00> (+1.00)

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 ffa6a1e...997a5f4. Read the comment docs.

@phil-davis
Copy link
Contributor

I created issue #37264 to create some acceptance tests for this button existing or not.
If those get done quickly (tomorrow morning) then they can be added to this PR, otherwise if this PR gets merged first then we will add them as a separate PR.

@phil-davis phil-davis self-requested a review April 15, 2020 11:16
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

LGTM and works - from a QA/testing POV the acceptance tests demostrate that.
Someone else can approve the detail of the code changes.

@phil-davis
Copy link
Contributor

@VicDeo there were acceptance tests here, and now they have disappeared.

@VicDeo
Copy link
Member Author

VicDeo commented Apr 20, 2020

@phil-davis oops...I didn't pull before rebasing :(

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

All the code is there now.

@VicDeo
Copy link
Member Author

VicDeo commented Apr 20, 2020

can't merge - codecov stalled :(

@owncloud owncloud deleted a comment from update-docs bot Apr 20, 2020
@phil-davis
Copy link
Contributor

codecov/patch result has been not coming many times in recent days. I will submit a result...

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.

4 participants