Topic: Access setup: Edit one's own transactions
hi all,
there is Edit other users transactions which is very helpful. However, I want limit some users from editing their own transactions as well. How do I go about that?
Thanks in advance.
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Setup → Access setup: Edit one's own transactions
hi all,
there is Edit other users transactions which is very helpful. However, I want limit some users from editing their own transactions as well. How do I go about that?
Thanks in advance.
Sales Transactions Permissions:
Sales orders edition
Sales deliveries edition
Sales invoices editionfrom which menu to Edit Sales Invoice or Direct invoice
Thanks in Advance
Read the Wiki.
Sales => Customer Transactions => Sales Invoices (Type) => Edit Icon.
I'm still not answered. If a user enters a transaction like customer payment, they can edit that transaction later. That is what I want to prevent.
Setup > Access Setup > Edit other users transactions helps block users from editing other users transactions. But how can I prevent a user from editing their own transactions (like customer payments)?
Please help, I really need this.
@davidkumi, you need to change the core as below
Paste the code below at Line 660 in includes\datachecks.inc
if (!$_SESSION['wa_current_user']->can_access('SA_EDITOWNRSTRANS'))
    {
        $audit = get_audit_trail_last($trans_type, $trans_no);
        if ($_SESSION['wa_current_user']->user == $audit['user'])
        {
            if (!$msg)
                $msg = '<b>'._("You have no edit access to transactions created by YOURSELF.").'</b>';
            display_note($msg);
            display_footer_exit();
        }
    }Add the code below at Line 131 in includes/access_levels.inc
  'SA_EDITOWNTRANS' => array(SS_SPEC|7, _("Edit Own transactions")), Hope this works
@joe: This may be integrated into thec ore, but study it's ramifications on related entries / derived / child entries of such "owners".
FrontAccounting forum → Setup → Access setup: Edit one's own transactions
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.