3 SGN::Authentication::User - a Catalyst compatible user class
7 Implemented according to Catalyst::Plugin::Authentication::Internals
11 Lukas Mueller <lam87@cornell.edu>
18 package SGN
::Authentication
::User
;
20 use base
"Catalyst::Authentication::User";
24 return $self->{user
}->get_username();
27 sub supported_features
{
29 return { roles
=>1, self_check
=>1};
39 $self->{user
} = shift;
44 return $self->{user
}->get_roles();
51 map { $has_roles{$_} = 1; } $self->roles();
53 foreach my $r (@roles) {
54 if (!exists($has_roles{$r})) {