Skip to content
Snippets Groups Projects
Unverified Commit b65a5956 authored by Tobias Kaminsky's avatar Tobias Kaminsky Committed by Morris Jobke
Browse files

add "askForPassword" on capabilities for sharing

parent 4cd7900d
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,12 @@ class Capabilities implements ICapability {
$public['password'] = [];
$public['password']['enforced'] = ($this->config->getAppValue('core', 'shareapi_enforce_links_password', 'no') === 'yes');
if ($public['password']['enforced']) {
$public['password']['askForOptionalPassword'] = false;
} else {
$public['password']['askForOptionalPassword'] = ($this->config->getAppValue('core', 'shareapi_enable_link_password_by_default', 'no') === 'yes');
}
$public['expire_date'] = [];
$public['multiple_links'] = true;
$public['expire_date']['enabled'] = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no') === 'yes';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment