mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
feat(sharing): Add custom_tokens capability
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
8b26383d00
commit
4d78de497f
1 changed files with 2 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ class Capabilities implements ICapability {
|
|||
* send_mail?: bool,
|
||||
* upload?: bool,
|
||||
* upload_files_drop?: bool,
|
||||
* custom_tokens?: bool,
|
||||
* },
|
||||
* user: array{
|
||||
* send_mail: bool,
|
||||
|
|
@ -136,6 +137,7 @@ class Capabilities implements ICapability {
|
|||
$public['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no') === 'yes';
|
||||
$public['upload'] = $this->shareManager->shareApiLinkAllowPublicUpload();
|
||||
$public['upload_files_drop'] = $public['upload'];
|
||||
$public['custom_tokens'] = $this->shareManager->allowCustomTokens();
|
||||
}
|
||||
$res['public'] = $public;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue