projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SL::ShopConnector::WooCommerce Kategorien per page
[kivitendo-erp.git]
/
SL
/
Controller
/
PriceSource.pm
diff --git
a/SL/Controller/PriceSource.pm
b/SL/Controller/PriceSource.pm
index
41ad793
..
85e3765
100644
(file)
--- a/
SL/Controller/PriceSource.pm
+++ b/
SL/Controller/PriceSource.pm
@@
-61,7
+61,13
@@
sub render_price_dialog {
#
sub check_auth {
#
sub check_auth {
- $::auth->assert('edit_prices');
+ if ($::form->{vc} eq 'customer') {
+ $::auth->assert('sales_edit_prices');
+ } elsif ($::form->{vc} eq 'vendor') {
+ $::auth->assert('purchase_edit_prices');
+ } else {
+ $::auth->assert('no_such_right');
+ }
}
sub init_record {
}
sub init_record {
@@
-194,4
+200,3
@@
sub _make_record {
}
1;
}
1;
-