From e18af94c0dc72def3629a352dbf048baa0dfd72d Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Tue, 26 Sep 2017 17:55:47 +0200 Subject: [PATCH] =?utf8?q?WebshopApi:=20=C3=9Cbersetzungen=20Rechte=20Admi?= =?utf8?q?nbereich?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- locale/de/all | 3 +++ locale/en/all | 3 +++ sql/Pg-upgrade2-auth/webshop_api_rights.pl | 16 ++++++++++------ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/locale/de/all b/locale/de/all index f84318b1a..19219b05d 100755 --- a/locale/de/all +++ b/locale/de/all @@ -3840,6 +3840,8 @@ $self->{texts} = { 'correction' => 'Korrektur', 'correction_br' => 'Korr.', 'cp_greeting to cp_gender migration' => 'Datenumwandlung von Titel nach Geschlecht (cp_greeting to cp_gender)', + 'create and edit shopparts' => '', + 'create and edit webshops' => '', 'customer' => 'Kunde', 'customer_list' => 'kundenliste', 'dated' => 'datiert', @@ -3890,6 +3892,7 @@ $self->{texts} = { 'general_ledger_list' => 'Buchungsjournal', 'generate cb/ob transactions for selected charts' => 'Start-/Endbuchungen für ausgewählte Konten erstellen', 'generated Files' => 'Erzeugte Dokumente', + 'get shoporders' => '', 'gobd-#1-#2.zip' => 'gobd-#1-#2.zip', 'h' => 'h', 'history search engine' => 'Historien Suchmaschine', diff --git a/locale/en/all b/locale/en/all index 2cd58aca8..379f94d76 100644 --- a/locale/en/all +++ b/locale/en/all @@ -3839,6 +3839,8 @@ $self->{texts} = { 'correction' => '', 'correction_br' => 'correction', 'cp_greeting to cp_gender migration' => '', + 'create and edit shopparts' => '', + 'create and edit webshops' => '', 'customer' => '', 'customer_list' => '', 'dated' => '', @@ -3889,6 +3891,7 @@ $self->{texts} = { 'general_ledger_list' => '', 'generate cb/ob transactions for selected charts' => '', 'generated Files' => '', + 'get shoporders' => '', 'gobd-#1-#2.zip' => '', 'h' => '', 'history search engine' => '', diff --git a/sql/Pg-upgrade2-auth/webshop_api_rights.pl b/sql/Pg-upgrade2-auth/webshop_api_rights.pl index 6c0190520..130b054c1 100644 --- a/sql/Pg-upgrade2-auth/webshop_api_rights.pl +++ b/sql/Pg-upgrade2-auth/webshop_api_rights.pl @@ -1,21 +1,25 @@ # @tag: webshop_api_rights # @description: Setzt die Rechte Shopconfig, Shopbestellungen, Shopartikel, per Default erlaubt # @depends: release_3_5_0 -package SL::DBUpgrade2::Auth::webshop_api_rights; +# @locales: create and edit shopparts +# @locales: get shoporders +# @locales: create and edit webshops + +package sl::dbupgrade2::auth::webshop_api_rights; use strict; use utf8; -use parent qw(SL::DBUpgrade2::Base); +use parent qw(sl::dbupgrade2::base); -use SL::DBUtils; +use sl::dbutils; sub run { my ($self) = @_; - $self->db_query("INSERT INTO auth.master_rights (position, name, description) VALUES ( 550, 'shop_part_edit', 'Create and edit shopparts')"); - $self->db_query("INSERT INTO auth.master_rights (position, name, description) VALUES ( 950, 'shop_order', 'Get shoporders')"); - $self->db_query("INSERT INTO auth.master_rights (position, name, description) VALUES ( 4300, 'edit_shop_config', 'Create and edit webshops')"); + $self->db_query("insert into auth.master_rights (position, name, description) values ( 550, 'shop_part_edit', 'create and edit shopparts')"); + $self->db_query("insert into auth.master_rights (position, name, description) values ( 950, 'shop_order', 'get shoporders')"); + $self->db_query("insert into auth.master_rights (position, name, description) values ( 4300, 'edit_shop_config', 'create and edit webshops')"); my $groups = $main::auth->read_groups(); -- 2.20.1