aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-17 12:36:05 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-10-17 12:36:05 +0200
commit3a11128e6c46cc6e9aafe41812889ae032c1be46 (patch)
tree19753d937aa330e07f2b9db7cc587761c98abdc5 /apps/files_sharing
parent7524b11617f41886572a2806de12a3d470ace90f (diff)
downloadnextcloud-server-3a11128e6c46cc6e9aafe41812889ae032c1be46.tar.gz
nextcloud-server-3a11128e6c46cc6e9aafe41812889ae032c1be46.zip
Fix type when getting appconfig with int
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Capabilities.php2
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Capabilities.php b/apps/files_sharing/lib/Capabilities.php
index c5421fe779a..58104864631 100644
--- a/apps/files_sharing/lib/Capabilities.php
+++ b/apps/files_sharing/lib/Capabilities.php
@@ -116,7 +116,7 @@ class Capabilities implements ICapability {
$res['group'] = [];
$res['group']['enabled'] = $this->shareManager->allowGroupSharing();
$res['group']['expire_date']['enabled'] = true;
- $res['default_permissions'] = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL);
+ $res['default_permissions'] = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', (string)Constants::PERMISSION_ALL);
}
//Federated sharing
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 26584f6d178..1212414790c 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -478,7 +478,7 @@ class ShareAPIController extends OCSController {
$share = $this->shareManager->newShare();
if ($permissions === null) {
- $permissions = $this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL);
+ $permissions = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', (string)Constants::PERMISSION_ALL);
}
// Verify path