Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 249c0c6f

Von Bernd Bleßmann vor etwa 4 Jahren hinzugefügt

  • ID 249c0c6f38350cc67eb2304538aa4ef7f329eb79
  • Vorgänger 02f625b8
  • Nachfolger 6463b7b8

Berechtigungen für Produktiovität als eigene Kategorie …

und die bisherigen Produktivitäts-Rechte und E-Mail-Journal-Rechte
darunter anzeigen.

Unterschiede anzeigen:

locale/de/all
2529 2529
  'Production'                  => 'Produktion',
2530 2530
  'Production (typeabbreviation)' => 'P',
2531 2531
  'Productivity'                => 'Produktivität',
2532
  'Productivity (TODO list, Follow-Ups)' => 'Produktivität (Aufgabenliste, Wiedervorlagen)',
2532 2533
  'Profit'                      => 'Gewinn',
2533 2534
  'Profit and loss accounts'    => 'Erfolgskonten',
2534 2535
  'Profit carried forward account' => 'Gewinnvortragskonto',
locale/en/all
2529 2529
  'Production'                  => 'Production',
2530 2530
  'Production (typeabbreviation)' => 'W',
2531 2531
  'Productivity'                => '',
2532
  'Productivity (TODO list, Follow-Ups)' => '',
2532 2533
  'Profit'                      => '',
2533 2534
  'Profit and loss accounts'    => '',
2534 2535
  'Profit carried forward account' => '',
sql/Pg-upgrade2-auth/right_productivity_as_category.sql
1
-- @tag: right_productivity_as_category
2
-- @description: Rechte: Produktivität als eigene Kategorie
3
-- @depends: master_rights_positions_fix
4
-- @locales: Productivity (TODO list, Follow-Ups)
5

  
6
-- make space before 'configuration'
7
UPDATE auth.master_rights SET position = position+1000
8
  WHERE position >= (SELECT position FROM auth.master_rights WHERE name LIKE 'configuration');
9

  
10
-- insert category for productivity before 'configuration'
11
INSERT INTO auth.master_rights (position, name, description, category)
12
  VALUES ((SELECT position FROM auth.master_rights WHERE name LIKE 'configuration') - 1000,
13
          'productivity_category',
14
          'Productivity',
15
          TRUE);
16

  
17
-- move productivity rights below 'productivity_category'
18
UPDATE auth.master_rights SET position    = (SELECT position FROM auth.master_rights WHERE name LIKE 'productivity_category') + 100,
19
                              description = 'Productivity (TODO list, Follow-Ups)'
20
  WHERE name LIKE 'productivity';
21

  
22
UPDATE auth.master_rights SET position = (SELECT position FROM auth.master_rights WHERE name LIKE 'productivity_category') + 200
23
  WHERE name LIKE 'email_journal';
24

  
25
UPDATE auth.master_rights SET position = (SELECT position FROM auth.master_rights WHERE name LIKE 'productivity_category') + 250
26
  WHERE name LIKE 'email_employee_readall';

Auch abrufbar als: Unified diff