celebrity/group/community pages about 75% implemented

This commit is contained in:
Mike Macgirvin
2010-10-17 20:04:17 -07:00
parent f5a8a92df1
commit 0f47ac282c
15 changed files with 133 additions and 62 deletions
+7 -1
View File
@@ -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;
}