X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/35617a68898e491aec8cdc12a8036b1632030bf2..e18af94c0dc72def3629a352dbf048baa0dfd72d:/sql/Pg-upgrade2-auth/webshop_api_rights.pl 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();