aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-17 20:04:17 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-17 20:04:17 -0700
commit0f47ac282c30c61dbc13e42c4f53b2fc14d65593 (patch)
treeb56358665636f78c6e9a62f2abebfb75049cf447 /mod/register.php
parentf5a8a92df101cbf37fedb9ac3f7702f60a40772e (diff)
downloadvolse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.gz
volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.bz2
volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.zip
celebrity/group/community pages about 75% implemented
Diffstat (limited to 'mod/register.php')
-rw-r--r--mod/register.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/register.php b/mod/register.php
index 890bc69b7..6f0469db8 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -250,7 +250,13 @@ function register_post(&$a) {
if(! function_exists('register_content')) {
function register_content(&$a) {
- if($a->config['register_policy'] == REGISTER_CLOSED) {
+ // logged in users can register others (people/pages/groups)
+ // even with closed registrations, unless specifically prohibited by site policy.
+ // 'block_extended_register' blocks all registrations, period.
+
+ $block = get_config('system','block_extended_register');
+
+ if((($a->config['register_policy'] == REGISTER_CLOSED) && (! getuid())) || ($block)) {
notice("Permission denied." . EOL);
return;
}