Skip to content

Commit

Permalink
fix: removed csrf check for the recent end point and ran cs fix
Browse files Browse the repository at this point in the history
Signed-off-by: yemkareems <yemkareems@gmail.com>
  • Loading branch information
yemkareems committed Jun 26, 2024
1 parent 8d4108b commit 0de617e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/provisioning_api/lib/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ public function getDisabledUsersDetails(string $search = '', ?int $limit = null,

/**
* @NoAdminRequired
* @NoCSRFRequired
*
* Get the list of disabled users and their details
*
Expand All @@ -281,10 +280,10 @@ public function getDisabledUsersDetails(string $search = '', ?int $limit = null,
* 200: Users details returned based on last logged in information
*/
public function getLastLoggedInUsers(string $search = '',
?int $limit = null,
int $offset = 0,
string $sortMode = 'lastLogin',
string $sortOrder = 'desc'
?int $limit = null,
int $offset = 0,
string $sortMode = 'lastLogin',
string $sortOrder = 'desc'
): DataResponse {
$currentUser = $this->userSession->getUser();
if ($currentUser === null) {
Expand Down

0 comments on commit 0de617e

Please sign in to comment.