Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Posts
    119
    Plugin Contributions
    0

    Default Authorization...is there a way to allow access even when Authorization = 1

    Configuration->Customer Details->Customer Approval Status - Authorization Pending = 1

    Is there an easy way to still allow access to /catalog/index.php?main_page=conditions ?

    I'm going to look in the code now because access is still allowed to 'Contact Us' and 'Privacy', so I realize there must be some code somewhere...wasn't sure if there was someone that new off-hand though.

    Normally the behavior is for most links to redirect to the 'Login' page.


    Thanks!

  2. #2
    Join Date
    Jul 2005
    Posts
    119
    Plugin Contributions
    0

    Default Re: Authorization...is there a way to allow access even when Authorization = 1

    Looks like I found it already...didn't expect to that fast. init_customer_auth.php I believe...unless someone can tell me otherwise. Thanks!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,669
    Plugin Contributions
    6

    Default Re: Authorization...is there a way to allow access even when Authorization = 1

    This case is what you need to change by adding the code in RED:
    Code:
      case (CUSTOMERS_APPROVAL_AUTHORIZATION == '1' and $_SESSION['customers_authorization'] != '0'):
      /**
       * customer is pending approval
       * customer must be logged in to browse
       */
      if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_LOGOFF, FILENAME_CONTACT_US, FILENAME_PRIVACY, FILENAME_CONDITIONS))) {
      if ($_GET['main_page'] != CUSTOMERS_AUTHORIZATION_FILENAME) {
        zen_redirect(zen_href_link(CUSTOMERS_AUTHORIZATION_FILENAME));
        }
      }
      break;
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Authorization of account
    By Veronika7747 in forum Basic Configuration
    Replies: 0
    Last Post: 16 Nov 2008, 05:29 PM
  2. Instant Customer Authorization Access Approval?
    By lithos044 in forum General Questions
    Replies: 2
    Last Post: 5 Aug 2008, 06:15 PM
  3. Authorization to browse
    By SoftCorpse in forum General Questions
    Replies: 3
    Last Post: 7 Jul 2006, 01:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •