aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Default.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Default.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index e4061c744..e81a28bd2 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -113,6 +113,18 @@ sub contact_restriction {
{};
}
+=head2 restriction
+
+Return a restriction to pull out data saved while using the cobrand site.
+
+=cut
+
+sub restriction {
+ my $self = shift;
+
+ return $self->moniker ? { cobrand => $self->moniker } : {};
+}
+
=head2 base_url_for_emails
Return the base url to use in links in emails for the cobranded version of the