rajan khuva
rajan khuva

Reputation: 33

JHipster Authority doesn't allow to add more than two authorities

I'm unable to add more than two authorities in route.ts. As I have five USER_ROLE in my jhi_authority table.

Upvotes: 0

Views: 66

Answers (1)

Gaël Marziou
Gaël Marziou

Reputation: 16284

The syntax you showed in comments is wrong, authorities expects an array of strings like this :

{
   authorities: ['ROLE_DOCTOR', 'ROLE_ADMIN', 'ROLE_PATIENT'] 
}

Upvotes: 1

Related Questions