In a method I use : Roles.setUserRoles( userID, 'admin', groupID );.
I get a Error: Role 'admin' does not exist. but I know admin exists and I am using the same line in an other methods.
So my question is: What could lead to this error ? (a role do not exist in a method but in another)
In a method I use :
Roles.setUserRoles( userID, 'admin', groupID );
. I get aError: Role 'admin' does not exist.
but I know admin exists and I am using the same line in an other methods.So my question is: What could lead to this error ? (a role do not exist in a method but in another)
Thanks!