> if ( subject.isPermitted("identity:assume") ) {
>    subject.assumeIdentity(anotherSubject);
> } else {
>    throw new UnauthorizedException(...);
> }

This is what I'd expect.

Cheers,
DJ

Reply via email to