Skip to content

Commit

Permalink
Merge pull request #14 from LyseonTech/fix-admin-route-perms
Browse files Browse the repository at this point in the history
Fix admin permissions in routes.
  • Loading branch information
vinicios-gomes authored Jan 12, 2021
2 parents d8abc38 + a430cc5 commit ff5cb37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public function __construct(
$this->userId = $userId;
}

/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function generateCertificate(
string $commonName = null,
string $country = null,
Expand Down Expand Up @@ -61,6 +65,10 @@ public function generateCertificate(
}
}

/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function loadCertificate(): DataResponse {
try {
$certificate = $this->service->loadKeys();
Expand Down

0 comments on commit ff5cb37

Please sign in to comment.