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

Add two more useful placeholders for watermark text #1240

Merged
merged 1 commit into from Nov 11, 2020

Conversation

timar
Copy link
Member

@timar timar commented Nov 10, 2020

...{email} and {userDisplayName}

Signed-off-by: Andras Timar andras.timar@collabora.com

  • Target version: master

Summary

A customer requested these placeholders.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

…rDisplayName}

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Copy link
Member

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

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

Great addition 👍

@juliushaertl juliushaertl added 4. to release Ready to release, can be waiting for the tests to finish enhancement New feature or request labels Nov 10, 2020
Copy link
Collaborator

@Ashod Ashod left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@@ -195,10 +195,13 @@ public function checkFileInfo($fileId, $access_token) {
}

if ($this->shouldWatermark($isPublic, $wopi->getEditorUid(), $fileId, $wopi)) {
$email = $user !== null && !$isPublic ? $user->getEMailAddress() : "";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good, but $isPublic is a confusing name (I know it's not added in this PR).

@juliushaertl juliushaertl merged commit ecc4924 into master Nov 11, 2020
@juliushaertl juliushaertl deleted the timar/morewatermarktextplaceholders branch November 11, 2020 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to release, can be waiting for the tests to finish enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants