Commit 2597a025 authored by hlarget's avatar hlarget 👹
Browse files

Merge branch 'release/2.0.6'

parents 309e6b34 68c4b073
......@@ -29,7 +29,7 @@ class CompanyController extends AbstractController
*/
public function resetCompanySecret(KonnectClient $konnectClient)
{
if (!in_array("OWNER", $this->getUser()->getRoles())) {
if (!in_array("ROLE_OWNER", $this->getUser()->getRoles())) {
return new Response("Only owner is allowed to reset the secret", Response::HTTP_FORBIDDEN);
}
$client = $konnectClient->getGuzzleClient();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment