You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/lib/NGCP/Panel/Authentication/Store/SystemRole.pm

16 lines
348 B

package NGCP::Panel::Authentication::Store::SystemRole;
use Sipwise::Base;
use parent 'Catalyst::Authentication::User::Hash';
sub roles {
my $self = shift;
# return only first role for now
return ref($self->{roles}) eq "ARRAY" ? $self->{roles}[0]
: $self->{roles};
}
1;
# vim ts=4 sw=4 et