diff options
author | Carl Schwan <carl@carlschwan.eu> | 2021-10-14 15:07:14 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2021-10-15 18:41:00 +0200 |
commit | 719dbafd1339702a170f04ebbc4f20e80d45e8c9 (patch) | |
tree | 0e4648b4f770e7c0f7b1ebad33afc718f63fdd8d /apps/user_ldap/lib/Controller | |
parent | b585cf1ea1baeb7bbfaf22953e48bbd33e8381fa (diff) | |
download | nextcloud-server-719dbafd1339702a170f04ebbc4f20e80d45e8c9.tar.gz nextcloud-server-719dbafd1339702a170f04ebbc4f20e80d45e8c9.zip |
Add support for Delegation Settings for more apps
* This adds support for the sharing, groupware, theming and user_ldap
app
* This adds some code who disapeared during a rebase in the initial
delegation PR (provisioning_api)
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/user_ldap/lib/Controller')
-rw-r--r-- | apps/user_ldap/lib/Controller/ConfigAPIController.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/user_ldap/lib/Controller/ConfigAPIController.php b/apps/user_ldap/lib/Controller/ConfigAPIController.php index cf09c6acd06..72ded754880 100644 --- a/apps/user_ldap/lib/Controller/ConfigAPIController.php +++ b/apps/user_ldap/lib/Controller/ConfigAPIController.php @@ -76,7 +76,7 @@ class ConfigAPIController extends OCSController { } /** - * creates a new (empty) configuration and returns the resulting prefix + * Creates a new (empty) configuration and returns the resulting prefix * * Example: curl -X POST -H "OCS-APIREQUEST: true" -u $admin:$password \ * https://nextcloud.server/ocs/v2.php/apps/user_ldap/api/v1/config @@ -110,6 +110,7 @@ class ConfigAPIController extends OCSController { * * For JSON output provide the format=json parameter * + * @AuthorizedAdminSetting(settings=OCA\User_LDAP\Settings\Admin) * @return DataResponse * @throws OCSException */ @@ -142,6 +143,7 @@ class ConfigAPIController extends OCSController { * <data/> * </ocs> * + * @AuthorizedAdminSetting(settings=OCA\User_LDAP\Settings\Admin) * @param string $configID * @return DataResponse * @throws OCSBadRequestException @@ -164,7 +166,7 @@ class ConfigAPIController extends OCSController { } /** - * modifies a configuration + * Modifies a configuration * * Example: * curl -X PUT -d "configData[ldapHost]=ldaps://my.ldap.server&configData[ldapPort]=636" \ @@ -181,6 +183,7 @@ class ConfigAPIController extends OCSController { * <data/> * </ocs> * + * @AuthorizedAdminSetting(settings=OCA\User_LDAP\Settings\Admin) * @param string $configID * @param array $configData * @return DataResponse @@ -216,7 +219,7 @@ class ConfigAPIController extends OCSController { } /** - * retrieves a configuration + * Retrieves a configuration * * <?xml version="1.0"?> * <ocs> @@ -280,6 +283,7 @@ class ConfigAPIController extends OCSController { * </data> * </ocs> * + * @AuthorizedAdminSetting(settings=OCA\User_LDAP\Settings\Admin) * @param string $configID * @param bool|string $showPassword * @return DataResponse @@ -311,8 +315,9 @@ class ConfigAPIController extends OCSController { } /** - * if the given config ID is not available, an exception is thrown + * If the given config ID is not available, an exception is thrown * + * @AuthorizedAdminSetting(settings=OCA\User_LDAP\Settings\Admin) * @param string $configID * @throws OCSNotFoundException */ |