Skip to content

[Share 2.0] Add missing post_update_permissions hook#22118

Merged
DeepDiver1975 merged 2 commits into
masterfrom
post_update_permissions_hook
Feb 5, 2016
Merged

[Share 2.0] Add missing post_update_permissions hook#22118
DeepDiver1975 merged 2 commits into
masterfrom
post_update_permissions_hook

Conversation

@rullzer

@rullzer rullzer commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

@nickvergessen as prommised.

CC: @schiesbn @nickvergessen @PVince81

@rullzer rullzer added this to the 9.0-current milestone Feb 4, 2016
@PVince81

PVince81 commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

Code looks good 👍

I'll have a look at the failing JS tests separately, seems to be random.

Comment thread lib/private/share20/manager.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

While I prefer this one, the old hook sent the local path, not the absolute path

8.2

Info    sharing_log     User admin shared "/test2" with the user test1, permissions: READ UPDATE CREATE DELETE SHARE [CLIENT_IP: 127.0.0.1]     2016-02-04T12:11:01+00:00 
Info    sharing_log     User admin updated the permissions for "/test/test2" for the user test1, permissions: READ UPDATE CREATE DELETE [CLIENT_IP: 127.0.0.1]  2016-02-04T12:11:02+00:00

This PR

Info    admin_audit     User admin shared "/test2" with the user test1, permissions: READ UPDATE CREATE DELETE SHARE [CLIENT_IP: 127.0.0.1]     2016-02-04T12:11:53+00:00 
Info    admin_audit     User admin updated the permissions for "/admin/files/test/test2" for the user test1, permissions: READ UPDATE CREATE DELETE [CLIENT_IP: 127.0.0.1]  2016-02-04T12:11:54+00:00

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed... should be the relative path now...

@PVince81

PVince81 commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

Triple unlucky:

  • JSUnit test unrelated: Fix jsunit filesclient #22130 (please review)
  • Swift test: "MySQL has gone away"
  • Smashbox: hudson.remoting.ChannelClosedException: channel is already closed

@nickvergessen

Copy link
Copy Markdown
Contributor

👍 Fixes admin_audit

@DeepDiver1975

Copy link
Copy Markdown
Member

needs rebase

@rullzer rullzer force-pushed the post_update_permissions_hook branch from eb195a3 to 1698749 Compare February 4, 2016 18:19
@rullzer

rullzer commented Feb 4, 2016

Copy link
Copy Markdown
Contributor Author

Rebased

DeepDiver1975 added a commit that referenced this pull request Feb 5, 2016
[Share 2.0] Add missing post_update_permissions hook
@DeepDiver1975 DeepDiver1975 merged commit c8e136b into master Feb 5, 2016
@DeepDiver1975 DeepDiver1975 deleted the post_update_permissions_hook branch February 5, 2016 09:04
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants