diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-10 10:52:55 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-10-10 10:52:55 +0300 |
commit | b351b3c8f9884ebb368b46305c034f9a71c1b864 (patch) | |
tree | 1830571f281b8e3b5e503fa1329480a0617c6a13 /lib | |
parent | d686c77f05a18ad803e67eb3cb8bbdc494c35d07 (diff) |
Fix php code style
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AppInfo/Application.php | 1 | ||||
-rw-r--r-- | lib/AuthorizedAdminSettingMiddleware.php | 1 | ||||
-rw-r--r-- | lib/Controller/DelegationController.php | 3 | ||||
-rw-r--r-- | lib/Service/DelegationService.php | 1 | ||||
-rw-r--r-- | lib/Settings/Admin.php | 1 |
5 files changed, 0 insertions, 7 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 310695fe..b09dbbcc 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -63,7 +63,6 @@ use OCP\IUserSession; use Psr\Log\LoggerInterface; class Application extends App implements IBootstrap { - public const CLASS_NAME_ADMIN_DELEGATION = 'OCA\GroupFolders\Settings\Admin'; public function __construct(array $urlParams = []) { diff --git a/lib/AuthorizedAdminSettingMiddleware.php b/lib/AuthorizedAdminSettingMiddleware.php index 873e22df..d76f27eb 100644 --- a/lib/AuthorizedAdminSettingMiddleware.php +++ b/lib/AuthorizedAdminSettingMiddleware.php @@ -74,7 +74,6 @@ class AuthorizedAdminSettingMiddleware extends Middleware { */ public function beforeController($controller, $methodName) { if ($this->reflector->hasAnnotation('AuthorizedAdminSetting')) { - if ($this->isAdminUser) { return; } diff --git a/lib/Controller/DelegationController.php b/lib/Controller/DelegationController.php index 22ecc680..9bda55ac 100644 --- a/lib/Controller/DelegationController.php +++ b/lib/Controller/DelegationController.php @@ -22,10 +22,8 @@ namespace OCA\GroupFolders\Controller; -use OCA\GroupFolders\AppInfo\Application; use OCA\GroupFolders\Service\DelegationService; use OCP\IConfig; -use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCSController; use OCP\IGroupManager; @@ -99,5 +97,4 @@ class DelegationController extends OCSController { return new DataResponse($data); } - } diff --git a/lib/Service/DelegationService.php b/lib/Service/DelegationService.php index c5b00bb0..4bb79936 100644 --- a/lib/Service/DelegationService.php +++ b/lib/Service/DelegationService.php @@ -59,7 +59,6 @@ class DelegationService { * @return bool */ public function isAdmin(): bool { - $authorizedGroups = $this->authorizedGroupService->findExistingGroupsForClass(Application::CLASS_NAME_ADMIN_DELEGATION); $userGroups = $this->groupManager->getUserGroups($this->userSession->getUser()); diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 11844aa5..3f49b923 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -28,7 +28,6 @@ use OCP\Settings\IDelegatedSettings; use OCP\AppFramework\Services\IInitialState; class Admin implements IDelegatedSettings { - private IInitialState $initialState; private ApplicationService $applicationService; private DelegationService $delegationService; |