Simple Invoices logo
    • CommentAuthoramarcus
    • CommentTimeJan 13th 2010
     permalink
    Hey guys,

    The print format of an invoice is perfect for online viewing. Except that I have enabled auth and hence I cannot giveout the link since it will redirect to the login page.

    I'm searching the source to find where it checks if the user is logged in but cant seem to find it.

    I want to add an if-statement to allow the user to view the page (even if they are not logged in). This will only be applied when they are viewing the invoice print page.


    Thanks
    • CommentAuthorjustin
    • CommentTimeJan 13th 2010
     permalink
    hey andy

    we use zend_auth and zend_acl for our login system

    the permissions on who can do what are still a work in progress but everything is defined in
    - http://code.google.com/p/simpleinvoices/source/browse/trunk/include/acl.php
    - http://code.google.com/p/simpleinvoices/source/browse/trunk/include/check_permission.php

    havent touched this in a while - would need to review the zend framework acl/auth stuff to get this working as you want

    cheers

    justinSmarterInvoices.com Simple Invoices hosting | SixHQ.com Simple Invoices custom development | Me