-
-
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
allow admin to disable lookupserver upload #4250
Conversation
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
…rofile picture' Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
92d77b7
to
d5173ac
Compare
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.
Tested and works 👍
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.
some nitpicks, the rest looks good though
*/ | ||
public function isLookupServerUploadEnabled() { | ||
$result = $this->config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes'); | ||
return ($result === 'yes') ? true : false; |
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.
the ($result === 'yes')
part already results in a proper boolean value, no need for the ternary operator here 😉
We could even shorten this to
return $this->config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes') === '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.
completely right, that's happen if you copy&paste methods and only replace the relevant parts 😉
I will not do the last step you suggested because I think this makes it harder to debug but will simplify the return statement
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Allow the admin to disable the possibility to publish user specific data on the lookup server.
fixes the "turn off showing phone number, address, WWW, Twitter" part of #3821
cc @KB7777