aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Fripost/Panel
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-19 02:22:17 +0100
committerGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-19 02:22:17 +0100
commitf7701a60f217ab154fe53a5d13bbd223f6182150 (patch)
tree8334d13eb9a7e58065be7db608718bad605fd07c /lib/Fripost/Panel
parent145a6fc76882769391e1e9792db868b692bc4538 (diff)
CanCreate → CanAdd
Diffstat (limited to 'lib/Fripost/Panel')
-rw-r--r--lib/Fripost/Panel/Interface.pm16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Fripost/Panel/Interface.pm b/lib/Fripost/Panel/Interface.pm
index c7e892c..d04fa3a 100644
--- a/lib/Fripost/Panel/Interface.pm
+++ b/lib/Fripost/Panel/Interface.pm
@@ -108,7 +108,7 @@ sub ListLocals : Runmode {
# Can the user add aliases?
$template->param( canAddalias => $domain{permissions} =~ /[aop]/ );
$template->param( listCanAddAlias => [ map { {user => encode_entities($_)} }
- @{$domain{canCreateAlias}} ] )
+ @{$domain{canAddAlias}} ] )
if $domain{permissions} =~ /[op]/;
# Should we list aliases?
$template->param( listAliases => $#aliases >= 0 ||
@@ -130,7 +130,7 @@ sub ListLocals : Runmode {
# Can the user add lists?
$template->param( canAddList => $domain{permissions} =~ /[lop]/ );
$template->param( listCanAddList => [ map { {user => encode_entities($_)} }
- @{$domain{canCreateList}} ] )
+ @{$domain{canAddList}} ] )
if $domain{permissions} =~ /[op]/;
# Should we list lists?
$template->param( listLists => $#lists >= 0 || $domain{permissions} =~ /[lop]/ );
@@ -172,8 +172,8 @@ sub EditDomain : Runmode {
isactive => $q->param('isactive'),
description => $q->param('description'),
catchalls => $q->param('catchalls'),
- canCreateAlias => $q->param('canCreateAlias'),
- canCreateList => $q->param('canCreateList')
+ canAddAlias => $q->param('canAddAlias'),
+ canAddList => $q->param('canAddList')
}, -concat => "(\n|\x{0D}\x{0A})");
}
my %domain = $fp->domain->get( $d, -die => 404 );
@@ -189,16 +189,16 @@ sub EditDomain : Runmode {
$template->param( isactive => $q->param('isactive')
, description => $q->param('description')
, catchalls => $q->param('catchalls')
- , canCreateAlias => $q->param('canCreateAlias')
- , canCreateList => $q->param('canCreateList')
+ , canAddAlias => $q->param('canAddAlias')
+ , canAddList => $q->param('canAddList')
, error => encode_entities ($error) );
}
else {
$template->param( isactive => $domain{isactive}
, description => &mkFormContent (@{$domain{description}})
, catchalls => &mkFormContentE (@{$domain{catchalls}})
- , canCreateAlias => &mkFormContentE (@{$domain{canCreateAlias}})
- , canCreateList => &mkFormContentE (@{$domain{canCreateList}})
+ , canAddAlias => &mkFormContentE (@{$domain{canAddAlias}})
+ , canAddList => &mkFormContentE (@{$domain{canAddList}})
);
}
$template->param( newChanges => defined $q->param('submit') );