'Create and edit sales delivery orders' => '',
'Create and edit sales orders' => '',
'Create and edit sales quotations' => '',
+ 'Create and edit shopparts' => 'Create and edit the parts assigned to a web shop',
'Create and edit vendor invoices' => '',
+ 'Create and edit webshops' => '',
'Create and print all invoices' => '',
'Create and print invoices' => '',
'Create and print invoices for all delivery orders matching the filter' => '',
'Generate and print sales delivery orders' => '',
'Generic Tax Report' => '',
'Germany' => '',
+ 'Get shoporders' => 'Get and process orders from a web shop',
'Git revision: #1, #2 #3' => '',
'Given Name' => '',
'Gldate' => 'Entry Date',
'correction' => '',
'correction_br' => 'correction',
'cp_greeting to cp_gender migration' => '',
- 'create and edit shopparts' => '',
- 'create and edit webshops' => '',
'customer' => '',
'customer_list' => '',
'dated' => '',
'general_ledger_list' => '',
'generate cb/ob transactions for selected charts' => '',
'generated Files' => '',
- 'get shoporders' => '',
'gobd-#1-#2.zip' => '',
'h' => '',
'history search engine' => '',
--- /dev/null
+# @tag: webshop_api_rights_2
+# @description: Setzt die Rechte Shopconfig, Shopbestellungen, Shopartikel, per Default nicht erlaubt
+# @depends: webshop_api_rights
+package SL::DBUpgrade2::Auth::webshop_api_rights_2;
+
+use strict;
+use utf8;
+
+use parent qw(SL::DBUpgrade2::Base);
+
+use SL::DBUtils;
+
+sub run {
+ my ($self) = @_;
+
+ $self->db_query("UPDATE auth.master_rights SET position = 4250 WHERE name = 'edit_shop_config'");
+
+ my $groups = $main::auth->read_groups();
+
+ foreach my $group (values %{$groups}) {
+ $group->{rights}->{shop_part_edit} = 0;
+ $group->{rights}->{shop_order} = 0;
+ $group->{rights}->{edit_shop_config} = 0;
+ $main::auth->save_group($group);
+ }
+
+ return 1;
+} # end run
+
+1;