Revision 9f68c5f3
Von Werner Hahn vor mehr als 7 Jahren hinzugefügt
sql/Pg-upgrade2-auth/webshop_api_rights.pl | ||
---|---|---|
1 | 1 |
# @tag: webshop_api_rights |
2 | 2 |
# @description: Setzt die Rechte Shopconfig, Shopbestellungen, Shopartikel, per Default erlaubt |
3 | 3 |
# @depends: release_3_5_0 |
4 |
# @locales: create and edit shopparts |
|
5 |
# @locales: get shoporders |
|
6 |
# @locales: create and edit webshops |
|
7 |
|
|
8 |
package sl::dbupgrade2::auth::webshop_api_rights; |
|
4 |
# @locales: Create and edit shopparts |
|
5 |
# @locales: Get shoporders |
|
6 |
# @locales: Create and edit webshops |
|
7 |
package SL::DBUpgrade2::Auth::webshop_api_rights; |
|
9 | 8 |
|
10 | 9 |
use strict; |
11 | 10 |
use utf8; |
12 | 11 |
|
13 |
use parent qw(sl::dbupgrade2::base);
|
|
12 |
use parent qw(SL::DBUpgrade2::Base);
|
|
14 | 13 |
|
15 |
use sl::dbutils;
|
|
14 |
use SL::DBUtils;
|
|
16 | 15 |
|
17 | 16 |
sub run { |
18 | 17 |
my ($self) = @_; |
19 | 18 |
|
20 |
$self->db_query("insert into auth.master_rights (position, name, description) values ( 550, 'shop_part_edit', 'create and edit shopparts')");
|
|
21 |
$self->db_query("insert into auth.master_rights (position, name, description) values ( 950, 'shop_order', 'get shoporders')");
|
|
22 |
$self->db_query("insert into auth.master_rights (position, name, description) values ( 4300, 'edit_shop_config', 'create and edit webshops')");
|
|
19 |
$self->db_query("INSERT INTO auth.master_rights (position, name, description) VALUES ( 550, 'shop_part_edit', 'Create and edit shopparts')");
|
|
20 |
$self->db_query("INSERT INTO auth.master_rights (position, name, description) VALUES ( 950, 'shop_order', 'Get shoporders')");
|
|
21 |
$self->db_query("INSERT INTO auth.master_rights (position, name, description) VALUES ( 4300, 'edit_shop_config', 'Create and edit webshops')");
|
|
23 | 22 |
|
24 | 23 |
my $groups = $main::auth->read_groups(); |
25 | 24 |
|
Auch abrufbar als: Unified diff
WebshopApi: geloweredcased rückgängig