-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Make the share accept process optional #18940
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
Conversation
|
/backport to stable18 |
rullzer
left a comment
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 I think you need to update the classmap
|
|
||
| private function handleAutoAccept(IShare $share, string $userId) { | ||
| if ($this->config->getUserValue($userId, 'files_sharing','default_accept','no') === 'yes') { | ||
| $defaultAcceptSystemConfig = $this->config->getSystemValueBool('sharing.enable_share_accept', false) ? '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.
Shouldn't we have another if here. That if share accept is false. We just accept it directly?
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.
No this is just the default value that might be overwritten later by the user value. If no user value is set it will be used.
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.
Aaaah right!
Signed-off-by: Julius Härtl <jus@bitgrid.net>
…are acceptance process Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
3abdadb to
176aeab
Compare
|
The backport to stable18 failed. Please do this backport manually. |
|
Autodocumented through the config.php sample |
This PR makes accepting shares automatically the default. There are two config.php settings:
The sharing settings will be hidden if accepting is enforced.