if ( $self->authz->authorize('role1') ) { # user belongs to the role1 group } else { # authorization failed }