Added organisations page to admin interface

This commit is contained in:
Tom Bloor 2017-04-24 12:49:18 +01:00
parent 25c0d06211
commit 98f15a67af
8 changed files with 217 additions and 19 deletions

View file

@ -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;