Added user type attribute
This commit is contained in:
parent
e886eb2ce6
commit
0a9ca57689
1 changed files with 10 additions and 1 deletions
|
@ -149,8 +149,17 @@ sub name {
|
|||
} elsif ( defined $self->organisation_id ) {
|
||||
return $self->organisation->name;
|
||||
} else {
|
||||
return undef;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
sub type {
|
||||
my $self = shift;
|
||||
|
||||
if ( defined $self->customer_id ) {
|
||||
return "customer";
|
||||
}
|
||||
return "organisation";
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Reference in a new issue