Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-10 10:59:33 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-10-10 10:59:33 +0300
commitdd38a4d45f53e6d2bb09ed86413bd2bb589825b3 (patch)
tree941829ebf7ee9d18baa58c802264be45409afe51 /lib
parentb351b3c8f9884ebb368b46305c034f9a71c1b864 (diff)
Improve comment
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/DelegationController.php5
-rw-r--r--lib/Controller/FolderController.php2
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/Controller/DelegationController.php b/lib/Controller/DelegationController.php
index 9bda55ac..264bea95 100644
--- a/lib/Controller/DelegationController.php
+++ b/lib/Controller/DelegationController.php
@@ -70,7 +70,6 @@ class DelegationController extends OCSController {
];
}
- // return info
return new DataResponse($data);
}
@@ -79,11 +78,11 @@ class DelegationController extends OCSController {
* If the classname is
* - OCA\GroupFolders\Settings\Admin : It's reference to fields in Admin Priveleges.
* - OCA\GroupFolders\Controller\DelegationController : It's just to specific the subadmins.
- * They can manage groupfolders with they are added in the Advanced Permissions (groups only)
+ * They can only manage groupfolders in which they are added in the Advanced Permissions (groups only)
* @NoAdminRequired
* @RequireGroupFolderAdmin
*/
- public function getAuthorizedGroups($classname = ""): DataResponse {
+ public function getAuthorizedGroups(string $classname = ""): DataResponse {
$data = [];
$authorizedGroups = $this->authorizedGroupService->findExistingGroupsForClass($classname);
diff --git a/lib/Controller/FolderController.php b/lib/Controller/FolderController.php
index 878a16b8..c8e14107 100644
--- a/lib/Controller/FolderController.php
+++ b/lib/Controller/FolderController.php
@@ -30,8 +30,8 @@ use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\OCSController;
use OCP\Files\IRootFolder;
use OCP\IRequest;
-use OCP\IUser;
use OCP\IUserSession;
+use OCP\IUser;
class FolderController extends OCSController {
private FolderManager $manager;