The previous attempt made plain security.context->isGranted() fail. Extending Symfony's Role object makes everything fine, although the solution is more than ugly. Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>