You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation is says @=hasAnyRole accepts a set of string parameters. But when trying with strings, I get the error:
Overblog\\GraphQLBundle\\Security\\BaseSecurity::hasAnyRole(): Argument #1 ($roles) must be of type array, string given,
called in /app/cache/dev/overblog/graphql-bundle/__definitions__/ExternalMutationType.php on line 44
If I change it to an array, it seems to work:
@=hasAnyRole(["ROLE_ADMIN", "ROLE_BIG_TIME"])
Should the documentation be correct to say it's an array of strings? hasAnyPermission seems to work this way.
In the documentation is says
@=hasAnyRole
accepts a set of string parameters. But when trying with strings, I get the error:If I change it to an array, it seems to work:
Should the documentation be correct to say it's an array of strings?
hasAnyPermission
seems to work this way.Happy to do it, but I wanted to make sure I'm not just misunderstanding.
The text was updated successfully, but these errors were encountered: