Try CumulusClips Cloud Hosting

[Fixed] Member approval required

edited March 26 in General
Hello,
When at admin-setting-general; I choose member approval required and click on update settings it goes back to Auto-Appove! it doesn' updated!

Comments

  • You are right. I am able to reproduce that setting on my installation as well. Let me see if I can find a workaround for you.

    @Damian, seems like a bug :(
  • Here is the fix for your problem:

    1) edit: cc-admin\settings.php

    2) go to line: 91

    3) remove this line:


    $data['auto_approve_users'] = '1';


    Thus, change this:

    // Validate auto_approve_users
    if ($data['user_registrations'] == '1') {
    if (isset($_POST['auto_approve_users']) && in_array($_POST['auto_approve_users'], array ('1', '0'))) {
    $data['auto_approve_users'] = $_POST['auto_approve_users'];
    } else {
    $errors['auto_approve_users'] = 'Invalid member approval option';
    }
    $data['auto_approve_users'] = '1';
    }


    to this:


    // Validate auto_approve_users
    if ($data['user_registrations'] == '1') {
    if (isset($_POST['auto_approve_users']) && in_array($_POST['auto_approve_users'], array ('1', '0'))) {
    $data['auto_approve_users'] = $_POST['auto_approve_users'];
    } else {
    $errors['auto_approve_users'] = 'Invalid member approval option';
    }
    }


    Cheers
  • Hello

    Now it works great!

    Thank you!
  • This can be close!
  • Resolved in 2.5
This discussion has been closed.