-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[stable12] Add recovery key on public upload #5630
[stable12] Add recovery key on public upload #5630
Conversation
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.
Works
@@ -407,7 +413,7 @@ public function update($path, $uid, array $accessList) { | |||
} | |||
} | |||
|
|||
$publicKeys = $this->keyManager->addSystemKeys($accessList, $publicKeys, $uid); | |||
$publicKeys = $this->keyManager->addSystemKeys($accessList, $publicKeys, $this->owner); |
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.
I assumed it is ensured somehow that begin()
is run first, and this $this->owner
is never null
?
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.
good catch, I will double check
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.
@blizzz I added a explicit check, can you review it (also the stable11 and master version) Thanks!
b08c7df
to
9cc81d4
Compare
Codecov Report
@@ Coverage Diff @@
## stable12 #5630 +/- ##
===============================================
- Coverage 54.08% 39.37% -14.72%
+ Complexity 22443 21168 -1275
===============================================
Files 1380 1311 -69
Lines 85825 70847 -14978
Branches 1329 0 -1329
===============================================
- Hits 46416 27893 -18523
- Misses 39409 42954 +3545
|
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.
Looks good
In order to decide if a recovery key needs to be added we always need to check the files owner settings and not the settings of the currently logged in user. Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
9cc81d4
to
fff804c
Compare
In order to decide if a recovery key needs to be added we always
need to check the files owner settings and not the settings of
the currently logged in user.
backport of #5629