File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1515use OCP \AppFramework \Http ;
1616use OCP \AppFramework \Http \Attribute \ApiRoute ;
1717use OCP \AppFramework \Http \Attribute \AuthorizedAdminSetting ;
18+ use OCP \AppFramework \Http \Attribute \NoCSRFRequired ;
1819use OCP \AppFramework \Http \DataResponse ;
1920use OCP \AppFramework \OCS \OCSException ;
2021use OCP \BackgroundJob \IJobList ;
@@ -66,6 +67,7 @@ public function __construct(
6667 */
6768 #[ApiRoute(verb: 'POST ' , url: '/api/{apiVersion}/admin-group ' , requirements: ['apiVersion ' => '(v1) ' ])]
6869 #[AuthorizedAdminSetting(settings:Users::class)]
70+ #[NoCSRFRequired]
6971 #[RestrictIp]
7072 public function createAdminGroup (
7173 string $ groupid ,
@@ -98,6 +100,7 @@ public function createAdminGroup(
98100 */
99101 #[ApiRoute(verb: 'POST ' , url: '/api/{apiVersion}/users-of-group/set-enabled ' , requirements: ['apiVersion ' => '(v1) ' ])]
100102 #[AuthorizedAdminSetting(settings:Users::class)]
103+ #[NoCSRFRequired]
101104 #[RestrictIp]
102105 public function setEnabled (
103106 string $ groupid ,
You can’t perform that action at this time.
0 commit comments