aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/appinfo/remote.php55
-rw-r--r--apps/files/lib/helper.php2
-rw-r--r--apps/files/tests/ajax_rename.php6
-rw-r--r--apps/files/tests/controller/apicontrollertest.php6
-rw-r--r--apps/files_external/css/settings.css13
-rw-r--r--apps/files_external/l10n/sq.js9
-rw-r--r--apps/files_external/l10n/sq.json9
-rw-r--r--apps/files_sharing/l10n/sq.js23
-rw-r--r--apps/files_sharing/l10n/sq.json23
-rw-r--r--apps/provisioning_api/lib/users.php37
10 files changed, 80 insertions, 103 deletions
diff --git a/apps/files/appinfo/remote.php b/apps/files/appinfo/remote.php
deleted file mode 100644
index d6a745d028e..00000000000
--- a/apps/files/appinfo/remote.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * @author Frank Karlitschek <frank@owncloud.org>
- * @author Jakob Sack <mail@jakobsack.de>
- * @author Joas Schilling <nickvergessen@owncloud.com>
- * @author Lukas Reschke <lukas@owncloud.com>
- * @author Morris Jobke <hey@morrisjobke.de>
- * @author Robin Appelman <icewind@owncloud.com>
- * @author Thomas Müller <thomas.mueller@tmit.eu>
- * @author Vincent Petry <pvince81@owncloud.com>
- *
- * @copyright Copyright (c) 2015, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-
-// no php execution timeout for webdav
-set_time_limit(0);
-
-// Turn off output buffering to prevent memory problems
-\OC_Util::obEnd();
-
-$serverFactory = new \OCA\DAV\Connector\Sabre\ServerFactory(
- \OC::$server->getConfig(),
- \OC::$server->getLogger(),
- \OC::$server->getDatabaseConnection(),
- \OC::$server->getUserSession(),
- \OC::$server->getMountManager(),
- \OC::$server->getTagManager(),
- \OC::$server->getEventDispatcher()
-);
-
-// Backends
-$authBackend = new \OCA\DAV\Connector\Sabre\Auth();
-$requestUri = \OC::$server->getRequest()->getRequestUri();
-
-$server = $serverFactory->createServer($baseuri, $requestUri, $authBackend, function() {
- // use the view for the logged in user
- return \OC\Files\Filesystem::getView();
-});
-
-// And off we go!
-$server->exec();
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index 6bfdc0a095c..fb14cea731f 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -137,10 +137,8 @@ class Helper {
$entry['id'] = $i['fileid'];
$entry['parentId'] = $i['parent'];
- $entry['date'] = \OCP\Util::formatDate($i['mtime']);
$entry['mtime'] = $i['mtime'] * 1000;
// only pick out the needed attributes
- $entry['icon'] = \OCA\Files\Helper::determineIcon($i);
if (\OC::$server->getPreviewManager()->isAvailable($i)) {
$entry['isPreviewAvailable'] = true;
}
diff --git a/apps/files/tests/ajax_rename.php b/apps/files/tests/ajax_rename.php
index 45d49c9549d..00a62fa002d 100644
--- a/apps/files/tests/ajax_rename.php
+++ b/apps/files/tests/ajax_rename.php
@@ -117,9 +117,6 @@ class Test_OC_Files_App_Rename extends \Test\TestCase {
$this->assertEquals('abcdef', $result['data']['etag']);
$this->assertFalse(isset($result['data']['tags']));
$this->assertEquals('/', $result['data']['path']);
- $icon = \OC_Helper::mimetypeIcon('dir-external');
- $icon = substr($icon, 0, -3) . 'svg';
- $this->assertEquals($icon, $result['data']['icon']);
}
/**
@@ -182,9 +179,6 @@ class Test_OC_Files_App_Rename extends \Test\TestCase {
$this->assertEquals('abcdef', $result['data']['etag']);
$this->assertEquals(array('tag1', 'tag2'), $result['data']['tags']);
$this->assertEquals('/', $result['data']['path']);
- $icon = \OC_Helper::mimetypeIcon('text');
- $icon = substr($icon, 0, -3) . 'svg';
- $this->assertEquals($icon, $result['data']['icon']);
\OC::$server->registerService('TagManager', function ($c) use ($oldTagManager) {
return $oldTagManager;
diff --git a/apps/files/tests/controller/apicontrollertest.php b/apps/files/tests/controller/apicontrollertest.php
index 35d00af75ba..7f34c0a5642 100644
--- a/apps/files/tests/controller/apicontrollertest.php
+++ b/apps/files/tests/controller/apicontrollertest.php
@@ -110,9 +110,7 @@ class ApiControllerTest extends TestCase {
[
'id' => null,
'parentId' => null,
- 'date' => \OCP\Util::formatDate(55),
'mtime' => 55000,
- 'icon' => \OCA\Files\Helper::determineIcon($fileInfo),
'name' => 'root.txt',
'permissions' => null,
'mimetype' => 'application/pdf',
@@ -175,9 +173,7 @@ class ApiControllerTest extends TestCase {
[
'id' => null,
'parentId' => null,
- 'date' => \OCP\Util::formatDate(55),
'mtime' => 55000,
- 'icon' => \OCA\Files\Helper::determineIcon($fileInfo1),
'name' => 'root.txt',
'permissions' => null,
'mimetype' => 'application/pdf',
@@ -194,9 +190,7 @@ class ApiControllerTest extends TestCase {
[
'id' => null,
'parentId' => null,
- 'date' => \OCP\Util::formatDate(999),
'mtime' => 999000,
- 'icon' => \OCA\Files\Helper::determineIcon($fileInfo2),
'name' => 'root.txt',
'permissions' => null,
'mimetype' => 'application/binary',
diff --git a/apps/files_external/css/settings.css b/apps/files_external/css/settings.css
index fb7789a537d..35c7a395c58 100644
--- a/apps/files_external/css/settings.css
+++ b/apps/files_external/css/settings.css
@@ -57,16 +57,27 @@ td.mountPoint, td.backend { width:160px; }
height: 32px;
padding: 3px;
}
+.select2-results .select2-result-label > span {
+ display: block;
+ position: relative;
+}
.select2-results .select2-result-label .avatardiv {
display:inline-block;
}
.select2-results .select2-result-label .avatardiv + span {
+ position: absolute;
+ top: 5px;
margin-left: 10px;
}
.select2-results .select2-result-label .avatardiv[data-type="group"] + span {
vertical-align: top;
top: 6px;
- position: relative;
+ position: absolute;
+ max-width: 80%;
+ left: 30px;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
}
#externalStorage .mountOptionsToggle .dropdown {
diff --git a/apps/files_external/l10n/sq.js b/apps/files_external/l10n/sq.js
index c0c181c1ad2..e61b50257ce 100644
--- a/apps/files_external/l10n/sq.js
+++ b/apps/files_external/l10n/sq.js
@@ -8,8 +8,13 @@ OC.L10N.register(
"Step 2 failed. Exception: %s" : "Hapi 2 dështoi. Përjashtim: %s",
"External storage" : "Depozitë e jashtme",
"Storage with id \"%i\" not found" : "S’u gjet depozitë me id \"%i\"",
+ "Invalid backend or authentication mechanism class" : "Mekanizëm shërbimi ose klasë mekanizmi mirëfilltësimi e palvefshme",
"Invalid mount point" : "Pikë montimi e pavlefshme",
+ "Objectstore forbidden" : "Objectstore e ndaluar",
+ "Invalid storage backend \"%s\"" : "Mekanizëm shërbimi depozite i pavlefshëm \"%s\"",
+ "Not permitted to use backend \"%s\"" : "I palejuar të përdorë mekanizmin e shërbimit \"%s\"",
"Not permitted to use authentication mechanism \"%s\"" : "S’i lejohet të përdorë mekanizmin e mirëfilltësimit \"%s\"",
+ "Unsatisfied backend parameters" : "Parametra mekanizmi shërbimi të paplotësuar",
"Unsatisfied authentication mechanism parameters" : "Parametra mekanizmi mirëfilltësimi të papërmbushur",
"Personal" : "Personale",
"System" : "Sistem",
@@ -25,6 +30,7 @@ OC.L10N.register(
"Never" : "Kurrë",
"Once every direct access" : "Çdo herë pas hyrjesh të drejtpërdrejta",
"Every time the filesystem is used" : "Sa herë që përdoret sistemi i kartelave",
+ "All users. Type to select user or group." : "Krejt përdoruesit. Shtypni që të përzgjidhet përdorues ose grup.",
"(group)" : "(grup)",
"Saved" : "U ruajt",
"Access key" : "Kyç hyrjesh",
@@ -52,6 +58,7 @@ OC.L10N.register(
"Port" : "Portë",
"Region" : "Rajon",
"Enable SSL" : "Aktivizo SSL-në",
+ "Enable Path Style" : "Aktivizon Stile Shtegu",
"WebDAV" : "WebDAV",
"URL" : "URL",
"Remote subfolder" : "Nëndosje e largët",
@@ -71,6 +78,8 @@ OC.L10N.register(
"Share" : "Ndajeni me të tjerët",
"Domain" : "Përkatësi",
"SMB / CIFS using OC login" : "SMB / CIFS me përdorim hyrjeje OC",
+ "Username as share" : "Emër përdoruesi si emër ndarjeje",
+ "OpenStack Object Storage" : "Depozitë OpenStack Object",
"Service name" : "Emër shërbimi",
"Request timeout (seconds)" : "Kohë skadimi kërkese (sekonda)",
"<b>Note:</b> " : "<b>Shënim:</b> ",
diff --git a/apps/files_external/l10n/sq.json b/apps/files_external/l10n/sq.json
index cb085636601..6c2d60c87a1 100644
--- a/apps/files_external/l10n/sq.json
+++ b/apps/files_external/l10n/sq.json
@@ -6,8 +6,13 @@
"Step 2 failed. Exception: %s" : "Hapi 2 dështoi. Përjashtim: %s",
"External storage" : "Depozitë e jashtme",
"Storage with id \"%i\" not found" : "S’u gjet depozitë me id \"%i\"",
+ "Invalid backend or authentication mechanism class" : "Mekanizëm shërbimi ose klasë mekanizmi mirëfilltësimi e palvefshme",
"Invalid mount point" : "Pikë montimi e pavlefshme",
+ "Objectstore forbidden" : "Objectstore e ndaluar",
+ "Invalid storage backend \"%s\"" : "Mekanizëm shërbimi depozite i pavlefshëm \"%s\"",
+ "Not permitted to use backend \"%s\"" : "I palejuar të përdorë mekanizmin e shërbimit \"%s\"",
"Not permitted to use authentication mechanism \"%s\"" : "S’i lejohet të përdorë mekanizmin e mirëfilltësimit \"%s\"",
+ "Unsatisfied backend parameters" : "Parametra mekanizmi shërbimi të paplotësuar",
"Unsatisfied authentication mechanism parameters" : "Parametra mekanizmi mirëfilltësimi të papërmbushur",
"Personal" : "Personale",
"System" : "Sistem",
@@ -23,6 +28,7 @@
"Never" : "Kurrë",
"Once every direct access" : "Çdo herë pas hyrjesh të drejtpërdrejta",
"Every time the filesystem is used" : "Sa herë që përdoret sistemi i kartelave",
+ "All users. Type to select user or group." : "Krejt përdoruesit. Shtypni që të përzgjidhet përdorues ose grup.",
"(group)" : "(grup)",
"Saved" : "U ruajt",
"Access key" : "Kyç hyrjesh",
@@ -50,6 +56,7 @@
"Port" : "Portë",
"Region" : "Rajon",
"Enable SSL" : "Aktivizo SSL-në",
+ "Enable Path Style" : "Aktivizon Stile Shtegu",
"WebDAV" : "WebDAV",
"URL" : "URL",
"Remote subfolder" : "Nëndosje e largët",
@@ -69,6 +76,8 @@
"Share" : "Ndajeni me të tjerët",
"Domain" : "Përkatësi",
"SMB / CIFS using OC login" : "SMB / CIFS me përdorim hyrjeje OC",
+ "Username as share" : "Emër përdoruesi si emër ndarjeje",
+ "OpenStack Object Storage" : "Depozitë OpenStack Object",
"Service name" : "Emër shërbimi",
"Request timeout (seconds)" : "Kohë skadimi kërkese (sekonda)",
"<b>Note:</b> " : "<b>Shënim:</b> ",
diff --git a/apps/files_sharing/l10n/sq.js b/apps/files_sharing/l10n/sq.js
index 30af1cece5d..6127399e1c8 100644
--- a/apps/files_sharing/l10n/sq.js
+++ b/apps/files_sharing/l10n/sq.js
@@ -1,25 +1,38 @@
OC.L10N.register(
"files_sharing",
{
- "Server to server sharing is not enabled on this server" : "Ndarja me shërbyesish nuk është e aktivizuar në këtë shërbyes.",
+ "Server to server sharing is not enabled on this server" : "Ndarja mes shërbyesish s’është e aktivizuar në këtë shërbyes",
"The mountpoint name contains invalid characters." : "Emri i pikës së montimit përmban shenja të pavlefshme.",
"Invalid or untrusted SSL certificate" : "Dëshmi SSL e pavlefshme ose e pabesuar",
+ "Could not authenticate to remote share, password might be wrong" : "S’bëri dot mirëfilltësimin te ndarja e largët, fjalëkalimi mund të jetë i gabuar",
"Storage not valid" : "Depozitë jo e vlefshme",
+ "Couldn't add remote share" : "S’shtoi dotë ndarje të largët",
"Shared with you" : "Ndarë me ju",
"Shared with others" : "Ndarë me të tjerët",
"Shared by link" : "Ndarë me lidhje",
"Nothing shared with you yet" : "Ende pa ndarë gjë me ju",
- "Nothing shared yet" : "Ende pa ndarë gjë ",
+ "Files and folders others share with you will show up here" : "Këtu do të shfaqen kartelat dhe dosjet që të jerët ndajnë me ju",
+ "Nothing shared yet" : "Ende pa ndarë gjë",
"Files and folders you share will show up here" : "Këtu do të shfaqen kartelat dhe dosjet që ndani me të tjerët",
"No shared links" : "Pa lidhje ndarjesh",
+ "Files and folders you share by link will show up here" : "Këtu do të shfaqen kartelat dhe dosjet që ndani përmes lidhjesh",
+ "Do you want to add the remote share {name} from {owner}@{remote}?" : "Doni të shtohet ndarja e largët {name} nga {owner}@{remote}?",
+ "Remote share" : "Ndarje e largët",
+ "Remote share password" : "Fjalëkalim ndarjeje të largët",
"Cancel" : "Anuloje",
+ "Add remote share" : "Shtoni ndarje të largët",
"You can upload into this folder" : "Mund të ngarkoni te kjo dosje",
"No ownCloud installation (7 or higher) found at {remote}" : "Te {remote} s’u gjet instalim ownCloud (7 ose më sipër)",
"Invalid ownCloud url" : "URL ownCloud e pavlefshme",
"Shared by" : "Ndarë nga",
"Sharing" : "Ndarje",
"A file or folder has been <strong>shared</strong>" : "U <strong>nda me të tjerë</strong> një kartelë ose dosje",
+ "A file or folder was shared from <strong>another server</strong>" : "Një kartelë ose dosje u nda prej një <strong>shërbyesi tjetër</strong>",
"A public shared file or folder was <strong>downloaded</strong>" : "<strong>U shkarkua</strong> një kartelë ose dosje e ndarë me të tjerët publikisht",
+ "You received a new remote share %2$s from %1$s" : "Morët një ndarje të largët %2$s nga %1$s",
+ "You received a new remote share from %s" : "Morët një ndarje të largët nga %s",
+ "%1$s accepted remote share %2$s" : "%1$s pranoi ndarjen e largët %2$s",
+ "%1$s declined remote share %2$s" : "%1$s hodhi tej ndarjen e largët %2$s",
"Public shared folder %1$s was downloaded" : "U shkarkua dosja e ndarë publikisht %1$s",
"Public shared file %1$s was downloaded" : "U shkarkua kartela e ndarë publikisht %1$s",
"You shared %1$s with %2$s" : "Ndatë %1$s me %2$s",
@@ -31,7 +44,7 @@ OC.L10N.register(
"You shared %1$s via link" : "E ndatë %1$s përmes një lidhjeje",
"Downloaded via public link" : "Shkarkuar përmes një lidhjeje publike",
"Shared with %2$s" : "U nda me %2$s",
- "Shared with group %2$s" : "U nda me grupin %2$s ",
+ "Shared with group %2$s" : "U nda me grupin %2$s",
"Shared with %3$s by %2$s" : "U nda me %3$s nga %2$s",
"Shared with group %3$s by %2$s" : "U nda me grupin %3$s nga %2$s",
"Shared via link by %2$s" : "U nda përmes një lidhje nga %2$s",
@@ -41,6 +54,8 @@ OC.L10N.register(
"You received %2$s as a remote share from %1$s" : "%2$s e morët si një ndarje të largët prej %1$s",
"Accept" : "Pranoje",
"Decline" : "Hidhe poshtë",
+ "Share with me through my #ownCloud Federated Cloud ID, see %s" : "Ndani me mua përmes ID-së time për #ownCloud Federated Cloud, shihni %s",
+ "Share with me through my #ownCloud Federated Cloud ID" : "Ndani me mua përmes ID-së time për #ownCloud Federated Cloud",
"This share is password-protected" : "Kjo pjesë është e mbrojtur me fjalëkalim",
"The password is wrong. Try again." : "Fjalëkalimi është i gabuar. Riprovoni.",
"Password" : "Fjalëkalim",
@@ -57,6 +72,8 @@ OC.L10N.register(
"Download %s" : "Shkarko %s",
"Direct link" : "Lidhje e drejtpërdrejtë",
"Open documentation" : "Hap dokumentimin",
+ "Allow users on this server to send shares to other servers" : "Lejoju përdoruesve në këtë shërbyes të dërgojnë ndarje në shërbyes të tjerë",
+ "Allow users on this server to receive shares from other servers" : "Lejoju përdoruesve në këtë shërbyes të marrin ndarje nga shërbyes të tjerë",
"Your Federated Cloud ID:" : "ID-ja juaj Federated Cloud:",
"Share it:" : "Ndajeni:",
"Add to your website" : "Shtojeni te sajti juaj",
diff --git a/apps/files_sharing/l10n/sq.json b/apps/files_sharing/l10n/sq.json
index 00af3567c58..7c5cfcc068d 100644
--- a/apps/files_sharing/l10n/sq.json
+++ b/apps/files_sharing/l10n/sq.json
@@ -1,23 +1,36 @@
{ "translations": {
- "Server to server sharing is not enabled on this server" : "Ndarja me shërbyesish nuk është e aktivizuar në këtë shërbyes.",
+ "Server to server sharing is not enabled on this server" : "Ndarja mes shërbyesish s’është e aktivizuar në këtë shërbyes",
"The mountpoint name contains invalid characters." : "Emri i pikës së montimit përmban shenja të pavlefshme.",
"Invalid or untrusted SSL certificate" : "Dëshmi SSL e pavlefshme ose e pabesuar",
+ "Could not authenticate to remote share, password might be wrong" : "S’bëri dot mirëfilltësimin te ndarja e largët, fjalëkalimi mund të jetë i gabuar",
"Storage not valid" : "Depozitë jo e vlefshme",
+ "Couldn't add remote share" : "S’shtoi dotë ndarje të largët",
"Shared with you" : "Ndarë me ju",
"Shared with others" : "Ndarë me të tjerët",
"Shared by link" : "Ndarë me lidhje",
"Nothing shared with you yet" : "Ende pa ndarë gjë me ju",
- "Nothing shared yet" : "Ende pa ndarë gjë ",
+ "Files and folders others share with you will show up here" : "Këtu do të shfaqen kartelat dhe dosjet që të jerët ndajnë me ju",
+ "Nothing shared yet" : "Ende pa ndarë gjë",
"Files and folders you share will show up here" : "Këtu do të shfaqen kartelat dhe dosjet që ndani me të tjerët",
"No shared links" : "Pa lidhje ndarjesh",
+ "Files and folders you share by link will show up here" : "Këtu do të shfaqen kartelat dhe dosjet që ndani përmes lidhjesh",
+ "Do you want to add the remote share {name} from {owner}@{remote}?" : "Doni të shtohet ndarja e largët {name} nga {owner}@{remote}?",
+ "Remote share" : "Ndarje e largët",
+ "Remote share password" : "Fjalëkalim ndarjeje të largët",
"Cancel" : "Anuloje",
+ "Add remote share" : "Shtoni ndarje të largët",
"You can upload into this folder" : "Mund të ngarkoni te kjo dosje",
"No ownCloud installation (7 or higher) found at {remote}" : "Te {remote} s’u gjet instalim ownCloud (7 ose më sipër)",
"Invalid ownCloud url" : "URL ownCloud e pavlefshme",
"Shared by" : "Ndarë nga",
"Sharing" : "Ndarje",
"A file or folder has been <strong>shared</strong>" : "U <strong>nda me të tjerë</strong> një kartelë ose dosje",
+ "A file or folder was shared from <strong>another server</strong>" : "Një kartelë ose dosje u nda prej një <strong>shërbyesi tjetër</strong>",
"A public shared file or folder was <strong>downloaded</strong>" : "<strong>U shkarkua</strong> një kartelë ose dosje e ndarë me të tjerët publikisht",
+ "You received a new remote share %2$s from %1$s" : "Morët një ndarje të largët %2$s nga %1$s",
+ "You received a new remote share from %s" : "Morët një ndarje të largët nga %s",
+ "%1$s accepted remote share %2$s" : "%1$s pranoi ndarjen e largët %2$s",
+ "%1$s declined remote share %2$s" : "%1$s hodhi tej ndarjen e largët %2$s",
"Public shared folder %1$s was downloaded" : "U shkarkua dosja e ndarë publikisht %1$s",
"Public shared file %1$s was downloaded" : "U shkarkua kartela e ndarë publikisht %1$s",
"You shared %1$s with %2$s" : "Ndatë %1$s me %2$s",
@@ -29,7 +42,7 @@
"You shared %1$s via link" : "E ndatë %1$s përmes një lidhjeje",
"Downloaded via public link" : "Shkarkuar përmes një lidhjeje publike",
"Shared with %2$s" : "U nda me %2$s",
- "Shared with group %2$s" : "U nda me grupin %2$s ",
+ "Shared with group %2$s" : "U nda me grupin %2$s",
"Shared with %3$s by %2$s" : "U nda me %3$s nga %2$s",
"Shared with group %3$s by %2$s" : "U nda me grupin %3$s nga %2$s",
"Shared via link by %2$s" : "U nda përmes një lidhje nga %2$s",
@@ -39,6 +52,8 @@
"You received %2$s as a remote share from %1$s" : "%2$s e morët si një ndarje të largët prej %1$s",
"Accept" : "Pranoje",
"Decline" : "Hidhe poshtë",
+ "Share with me through my #ownCloud Federated Cloud ID, see %s" : "Ndani me mua përmes ID-së time për #ownCloud Federated Cloud, shihni %s",
+ "Share with me through my #ownCloud Federated Cloud ID" : "Ndani me mua përmes ID-së time për #ownCloud Federated Cloud",
"This share is password-protected" : "Kjo pjesë është e mbrojtur me fjalëkalim",
"The password is wrong. Try again." : "Fjalëkalimi është i gabuar. Riprovoni.",
"Password" : "Fjalëkalim",
@@ -55,6 +70,8 @@
"Download %s" : "Shkarko %s",
"Direct link" : "Lidhje e drejtpërdrejtë",
"Open documentation" : "Hap dokumentimin",
+ "Allow users on this server to send shares to other servers" : "Lejoju përdoruesve në këtë shërbyes të dërgojnë ndarje në shërbyes të tjerë",
+ "Allow users on this server to receive shares from other servers" : "Lejoju përdoruesve në këtë shërbyes të marrin ndarje nga shërbyes të tjerë",
"Your Federated Cloud ID:" : "ID-ja juaj Federated Cloud:",
"Share it:" : "Ndajeni:",
"Add to your website" : "Shtojeni te sajti juaj",
diff --git a/apps/provisioning_api/lib/users.php b/apps/provisioning_api/lib/users.php
index add6325bde0..fc5e79d4b2b 100644
--- a/apps/provisioning_api/lib/users.php
+++ b/apps/provisioning_api/lib/users.php
@@ -115,46 +115,28 @@ class Users {
return new OC_OCS_Result(null, \OCP\API::RESPOND_UNAUTHORISED);
}
+ $data = [];
+
// Admin? Or SubAdmin?
if($this->groupManager->isAdmin($user->getUID()) || OC_SubAdmin::isUserAccessible($user->getUID(), $userId)) {
// Check they exist
if(!$this->userManager->userExists($userId)) {
return new OC_OCS_Result(null, \OCP\API::RESPOND_NOT_FOUND, 'The requested user could not be found');
}
- // Show all
- $return = [
- 'email',
- 'enabled',
- ];
- if($user->getUID() !== $userId) {
- $return[] = 'quota';
- }
+ $data['enabled'] = $this->config->getUserValue($userId, 'core', 'enabled', 'true');
} else {
// Check they are looking up themselves
if($user->getUID() !== $userId) {
return new OC_OCS_Result(null, \OCP\API::RESPOND_UNAUTHORISED);
}
- // Return some additional information compared to the core route
- $return = array(
- 'email',
- 'displayname',
- );
}
// Find the data
- $data = [];
- $data = self::fillStorageInfo($userId, $data);
- $data['enabled'] = $this->config->getUserValue($userId, 'core', 'enabled', 'true');
+ $data['quota'] = self::fillStorageInfo($userId);
$data['email'] = $this->config->getUserValue($userId, 'settings', 'email');
- $data['displayname'] = $this->userManager->get($parameters['userid'])->getDisplayName();
+ $data['displayname'] = $this->userManager->get($userId)->getDisplayName();
- // Return the appropriate data
- $responseData = array();
- foreach($return as $key) {
- $responseData[$key] = $data[$key];
- }
-
- return new OC_OCS_Result($responseData);
+ return new OC_OCS_Result($data);
}
/**
@@ -473,19 +455,20 @@ class Users {
* @return mixed
* @throws \OCP\Files\NotFoundException
*/
- private static function fillStorageInfo($userId, $data) {
+ private static function fillStorageInfo($userId) {
+ $data = [];
try {
\OC_Util::tearDownFS();
\OC_Util::setupFS($userId);
$storage = OC_Helper::getStorageInfo('/');
- $data['quota'] = [
+ $data = [
'free' => $storage['free'],
'used' => $storage['used'],
'total' => $storage['total'],
'relative' => $storage['relative'],
];
} catch (NotFoundException $ex) {
- $data['quota'] = [];
+ $data = [];
}
return $data;
}