-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Share 2.0] Add missing post_update_permissions hook #22118
Conversation
Code looks good 👍 I'll have a look at the failing JS tests separately, seems to be random. |
'shareWith' => $share->getSharedWith(), | ||
'uidOwner' => $share->getSharedBy(), | ||
'permissions' => $share->getPermissions(), | ||
'path' => $share->getNode()->getPath(), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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...
Triple unlucky:
|
👍 Fixes admin_audit |
needs rebase |
eb195a3
to
1698749
Compare
Rebased |
[Share 2.0] Add missing post_update_permissions hook
@nickvergessen as prommised.
CC: @schiesbn @nickvergessen @PVince81