Help for this page

Select Code to Download


  1. or download this
    if ( $self->authz->authorize('role1') ) {
      # user belongs to the role1 group
    } else {
      # authorization failed
    }
    
  2. or download this
    my @roles = $self->authz->get_roles( $user );