Skip to content

Commit b1819aa

Browse files
committed
Add @AuthorizedAdminSetting to all controller methods.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
1 parent ad513bd commit b1819aa

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/Controller/SettingsController.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ public function __construct(
9292
* Verify the database connection parameters.
9393
*
9494
* @return array The request status.
95+
*
96+
* @AuthorizedAdminSetting(settings=OCA\UserSQL\Settings\Admin)
9597
*/
9698
public function verifyDbConnection()
9799
{
@@ -189,6 +191,8 @@ private function getConnection()
189191
* Save application properties.
190192
*
191193
* @return array The request status.
194+
*
195+
* @AuthorizedAdminSetting(settings=OCA\UserSQL\Settings\Admin)
192196
*/
193197
public function saveProperties()
194198
{
@@ -329,6 +333,8 @@ private function cryptoClassConfiguration($cryptoClass)
329333
* Clear the application cache memory.
330334
*
331335
* @return array The request status.
336+
*
337+
* @AuthorizedAdminSetting(settings=OCA\UserSQL\Settings\Admin)
332338
*/
333339
public function clearCache()
334340
{
@@ -356,6 +362,8 @@ public function clearCache()
356362
* Autocomplete for table select options.
357363
*
358364
* @return array The database table list.
365+
*
366+
* @AuthorizedAdminSetting(settings=OCA\UserSQL\Settings\Admin)
359367
*/
360368
public function tableAutocomplete()
361369
{
@@ -385,6 +393,8 @@ public function tableAutocomplete()
385393
* Autocomplete for column select options - user table.
386394
*
387395
* @return array The database table's column list.
396+
*
397+
* @AuthorizedAdminSetting(settings=OCA\UserSQL\Settings\Admin)
388398
*/
389399
public function userTableAutocomplete()
390400
{
@@ -430,6 +440,8 @@ private function columnAutocomplete($table)
430440
* Autocomplete for column select options - user_group table.
431441
*
432442
* @return array The database table's column list.
443+
*
444+
* @AuthorizedAdminSetting(settings=OCA\UserSQL\Settings\Admin)
433445
*/
434446
public function userGroupTableAutocomplete()
435447
{
@@ -451,6 +463,8 @@ public function userGroupTableAutocomplete()
451463
* Autocomplete for column select options - group table.
452464
*
453465
* @return array The database table's column list.
466+
*
467+
* @AuthorizedAdminSetting(settings=OCA\UserSQL\Settings\Admin)
454468
*/
455469
public function groupTableAutocomplete()
456470
{
@@ -473,6 +487,8 @@ public function groupTableAutocomplete()
473487
*
474488
* @return array Password algorithm parameters.
475489
* @throws ReflectionException Whenever Opt class cannot be initiated.
490+
*
491+
* @AuthorizedAdminSetting(settings=OCA\UserSQL\Settings\Admin)
476492
*/
477493
public function cryptoParams()
478494
{

0 commit comments

Comments
 (0)