diff --git a/model/DomainHandler.php b/model/DomainHandler.php index b773de5b..39b2c4fe 100644 --- a/model/DomainHandler.php +++ b/model/DomainHandler.php @@ -122,6 +122,7 @@ class DomainHandler extends PFAHandler { $this->msg['store_error'] = 'pAdminEdit_domain_result_error'; $this->msg['successmessage'] = 'domain_updated'; } + $this->msg['can_create'] = $this->is_superadmin; } public function webformConfig() { diff --git a/model/PFAHandler.php b/model/PFAHandler.php index c1e82e88..04e9de21 100644 --- a/model/PFAHandler.php +++ b/model/PFAHandler.php @@ -112,6 +112,7 @@ abstract class PFAHandler { # (stored separately to make the functions reuseable) # filled by initMsg() protected $msg = array( + 'can_create' => True, 'confirm_delete' => 'confirm', ); diff --git a/templates/list.tpl b/templates/list.tpl index 073360cc..78ea225e 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -106,8 +106,10 @@ +{if $msg.can_create}
{$PALANG.{$formconf.create_button}}

+{/if}
{$PALANG.download_csv}