aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/register.php')
-rw-r--r--mod/register.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/register.php b/mod/register.php
index 8678614ac..2e5d02273 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -175,6 +175,11 @@ function register_post(&$a) {
if(! function_exists('register_content')) {
function register_content(&$a) {
+ if($a->config['register_policy'] == REGISTER_CLOSED) {
+ notice("Permission denied." . EOL);
+ return;
+ }
+
$o = file_get_contents("view/register.tpl");
$o = replace_macros($o, array('$registertext' =>((x($a->config,'register_text'))? $a->config['register_text'] : "" )));
return $o;