summaryrefslogtreecommitdiffstats
path: root/lib/Config.php
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-01-04 17:09:57 +0100
committerGitHub <noreply@github.com>2023-01-04 17:09:57 +0100
commitff782dbfde14a263d73de87641989ccb15c396cf (patch)
treebc4b78dd30f24f242b7511d4a26ffb3a232f68d9 /lib/Config.php
parent7d9db57f9ed3572501987a6398caeac72d6872ac (diff)
parent0d3a83b7e9d434719c9f046d4caeced42718dd8c (diff)
Merge pull request #8492 from nextcloud/feature/store-recording
Diffstat (limited to 'lib/Config.php')
-rw-r--r--lib/Config.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Config.php b/lib/Config.php
index cf5a12905..9c9119271 100644
--- a/lib/Config.php
+++ b/lib/Config.php
@@ -34,7 +34,6 @@ use OCP\IURLGenerator;
use OCP\IUser;
use OCP\IUserManager;
use OCP\Security\ISecureRandom;
-use OCP\Server;
class Config {
public const SIGNALING_INTERNAL = 'internal';
@@ -153,6 +152,15 @@ class Config {
return $isSignalingOk && $recordingEnabled;
}
+ public function getRecordingFolder(string $userId): string {
+ return $this->config->getUserValue(
+ $userId,
+ 'spreed',
+ 'recording_folder',
+ $this->getAttachmentFolder($userId) . '/Recording'
+ );
+ }
+
public function isDisabledForUser(IUser $user): bool {
$allowedGroups = $this->getAllowedTalkGroupIds();
if (empty($allowedGroups)) {