Added organisations page to admin interface
This commit is contained in:
parent
25c0d06211
commit
98f15a67af
8 changed files with 217 additions and 19 deletions
|
@ -134,4 +134,16 @@ sub generate_session {
|
|||
return $token;
|
||||
}
|
||||
|
||||
sub name {
|
||||
my $self = shift;
|
||||
|
||||
if ( defined $self->customer_id ) {
|
||||
return $self->customer->name;
|
||||
} elsif ( defined $self->organisation_id ) {
|
||||
return $self->organisation->name;
|
||||
} else {
|
||||
return undef;
|
||||
}
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Reference in a new issue