View | Details | Raw Unified | Return to bug 31378
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_31378.pl (+9 lines)
Lines 8-13 return { Link Here
8
        my ($args) = @_;
8
        my ($args) = @_;
9
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        my ($dbh, $out) = @$args{qw(dbh out)};
10
10
11
        # Add new permission
12
        $dbh->do(qq{
13
            INSERT IGNORE permissions (module_bit, code, description)
14
            VALUES
15
            ( 3, 'manage_authentication_providers', 'Manage authentication providers')
16
        });
17
18
        say $out "manage_authentication_providers permission added";
19
11
        unless (TableExists('auth_providers')) {
20
        unless (TableExists('auth_providers')) {
12
            $dbh->do(q{
21
            $dbh->do(q{
13
                CREATE TABLE `auth_providers` (
22
                CREATE TABLE `auth_providers` (
(-)a/installer/data/mysql/mandatory/userpermissions.sql (+1 lines)
Lines 40-45 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
40
   ( 3, 'manage_smtp_servers', 'Manage SMTP servers configuration'),
40
   ( 3, 'manage_smtp_servers', 'Manage SMTP servers configuration'),
41
   ( 3, 'manage_background_jobs', 'Manage background jobs'),
41
   ( 3, 'manage_background_jobs', 'Manage background jobs'),
42
   ( 3, 'manage_curbside_pickups', 'Manage curbside pickups'),
42
   ( 3, 'manage_curbside_pickups', 'Manage curbside pickups'),
43
   ( 3, 'manage_authentication_providers', 'Manage authentication providers'),
43
   ( 4, 'delete_borrowers', 'Delete patrons'),
44
   ( 4, 'delete_borrowers', 'Delete patrons'),
44
   ( 4, 'edit_borrowers', 'Add, modify and view patron information'),
45
   ( 4, 'edit_borrowers', 'Add, modify and view patron information'),
45
   ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'),
46
   ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +6 lines)
Lines 822-826 Link Here
822
            Manage recalls for patrons
822
            Manage recalls for patrons
823
        </span>
823
        </span>
824
        <span class="permissioncode">([% name | html %])</span>
824
        <span class="permissioncode">([% name | html %])</span>
825
  [%# authentication_providers %]
826
    [%- CASE 'manage_authentication_providers' -%]
827
        <span class="sub_permission manage_authentication_providers_subpermission">
828
            Manage authentication providers
829
        </span>
830
        <span class="permissioncode">([% name | html %])</span>
825
  [%- END -%]
831
  [%- END -%]
826
[%- END -%]
832
[%- END -%]
827
- 

Return to bug 31378