Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b4ddf2d4

Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt

  • ID b4ddf2d433ca367128cdab950d2fcc391657de38
  • Vorgänger ab010352
  • Nachfolger d53d7a0a

Recht: Ansehen von Verkaufsrechnungen berücksichtigen

Unterschiede anzeigen:

bin/mozilla/is.pl
62 62
# end of main
63 63

  
64 64
sub _may_view_or_edit_this_invoice {
65
  return 1 if  $::auth->assert('invoice_edit', 1); # may edit all invoices
66
  return 0 if !$::form->{id};                      # creating new invoices isn't allowed without invoice_edit
67
  return 0 if !$::form->{globalproject_id};        # existing records without a project ID are not allowed
65
  return 1 if  $::auth->assert('invoice_edit', 1);       # may edit all invoices
66
  return 0 if !$::form->{id};                            # creating new invoices isn't allowed without invoice_edit
67
  return 1 if  $::auth->assert('sales_invoice_view', 1); # viewing is allowed with this right
68
  return 0 if !$::form->{globalproject_id};              # existing records without a project ID are not allowed
68 69
  return SL::DB::Project->new(id => $::form->{globalproject_id})->load->may_employee_view_project_invoices(SL::DB::Manager::Employee->current);
69 70
}
70 71

  

Auch abrufbar als: Unified diff