$ drush php-eval "\$r = user_roles(); print \$r[2];"
Authentifizierter Benutzer
$ drush php-eval "\$u = user_load(1); print \$u->roles[2];"
authenticated user
currently user_roles translates builtin roles 1+2,
but UserController::attachLoad (user.module:306) and user_load (user.module:577) do not.
this leads to issues with modules.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | user-role-translation-patch-1350914.patch | 822 bytes | tayzlor |
Comments
Comment #0.0
geek-merlinfixed link
Comment #1
good_man commentedI ensure that it does exist in 7.x & 8.x as well.
Comment #2
tayzlor commentedattaching patch to add translation....
Comment #3
tayzlor commentedComment #4
kscheirer#2: user-role-translation-patch-1350914.patch queued for re-testing.
Comment #5
kscheirerRetesting against latest HEAD since it has been over a year.
Comment #6.0
(not verified) commentedadded line
Comment #9
dpiDoes not seem to be an issue at this time