-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Remove send mail option #1978
Remove send mail option #1978
Conversation
@schiessle, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ChristophWurst, @rullzer and @PVince81 to be potential reviewers. |
@@ -235,7 +235,6 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal | |||
$params['owner'] = $storageInfo['owner']; | |||
$params['ownerDisplayName'] = $storageInfo['ownerDisplayName']; | |||
$params['isPublic'] = false; | |||
$params['mailNotificationEnabled'] = $this->config->getAppValue('core', 'shareapi_allow_mail_notification', 'no'); | |||
$params['mailPublicNotificationEnabled'] = $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no'); |
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.
Remove this as well?
@@ -16,7 +16,6 @@ | |||
<input type="hidden" name="ownerDisplayName" id="ownerDisplayName" value="<?php p($_['ownerDisplayName']); ?>" /> | |||
<input type="hidden" name="fileNotFound" id="fileNotFound" value="<?php p($_['fileNotFound']); ?>" /> | |||
<?php if (!$_['isPublic']) :?> | |||
<input type="hidden" name="mailNotificationEnabled" id="mailNotificationEnabled" value="<?php p($_['mailNotificationEnabled']) ?>" /> | |||
<input type="hidden" name="mailPublicNotificationEnabled" id="mailPublicNotificationEnabled" value="<?php p($_['mailPublicNotificationEnabled']) ?>" /> |
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.
Remove this as well?
@@ -218,7 +218,6 @@ public function testIndexWithRegularBrowser() { | |||
'defaultFileSortingDirection' => 'asc', | |||
'showHiddenFiles' => 0, | |||
'fileNotFound' => 0, | |||
'mailNotificationEnabled' => 'no', | |||
'mailPublicNotificationEnabled' => 'no', |
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.
Remove this as well?
@@ -73,8 +73,6 @@ public function getCapabilities() { | |||
} | |||
$res["public"] = $public; | |||
|
|||
$res['user']['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_mail_notification', 'no') === 'yes'; |
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.
set to false, so a check for the capability on client is saver?
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.
Agreed
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.
done
* this was dropped for Nextcloud 11 in favour of share by mail | ||
*/ | ||
public function removeSendMailOption() { | ||
$this->config->deleteAppValue('core', 'shareapi_allow_mail_notification'); |
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.
Also shareapi_allow_public_notification
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.
done
@@ -52,7 +52,6 @@ public function getForm() { | |||
// Built-In Sharing | |||
'allowGroupSharing' => $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes'), | |||
'allowLinks' => $this->config->getAppValue('core', 'shareapi_allow_links', 'yes'), | |||
'allowMailNotification' => $this->config->getAppValue('core', 'shareapi_allow_mail_notification', 'no'), | |||
'allowPublicMailNotification' => $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no'), |
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.
drop
->willReturn('no'); | ||
$this->config | ||
->expects($this->at(4)) | ||
->method('getAppValue') | ||
->with('core', 'shareapi_allow_public_notification', 'no') |
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.
drop
->willReturn('no'); | ||
$this->config | ||
->expects($this->at(4)) | ||
->method('getAppValue') | ||
->with('core', 'shareapi_allow_public_notification', 'no') |
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.
drop
@@ -121,7 +116,6 @@ public function testGetFormWithoutExcludedGroups() { | |||
[ | |||
'allowGroupSharing' => 'yes', | |||
'allowLinks' => 'yes', | |||
'allowMailNotification' => 'no', | |||
'allowPublicMailNotification' => 'no', |
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.
drop
@@ -220,7 +209,6 @@ public function testGetFormWithExcludedGroups() { | |||
[ | |||
'allowGroupSharing' => 'yes', | |||
'allowLinks' => 'yes', | |||
'allowMailNotification' => 'no', | |||
'allowPublicMailNotification' => 'no', |
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.
drop
e016efd
to
11ad9d4
Compare
11ad9d4
to
ee35e4d
Compare
…-by-mail feature Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
ee35e4d
to
d09216a
Compare
@rullzer @nickvergessen please review... everything should be fine now |
good stuff! 👍 I updated |
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
86b0f0b
to
7d17b42
Compare
All marked as done by @schiessle
Tested and works 👍 |
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Slightly different, but anyways: #5897 |
Remove remaining "notify by email" and "send link by mail" code. Was already started here, but there was still some code left: #1929
As discussed here: #1916
cc @rullzer