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 41-46 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
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_search_filters', 'Manage custom search filters'),
43
   ( 3, 'manage_search_filters', 'Manage custom search filters'),
44
   ( 3, 'manage_authentication_providers', 'Manage authentication providers'),
44
   ( 4, 'delete_borrowers', 'Delete patrons'),
45
   ( 4, 'delete_borrowers', 'Delete patrons'),
45
   ( 4, 'edit_borrowers', 'Add, modify and view patron information'),
46
   ( 4, 'edit_borrowers', 'Add, modify and view patron information'),
46
   ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'),
47
   ( 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 827-831 Link Here
827
            Manage recalls for patrons
827
            Manage recalls for patrons
828
        </span>
828
        </span>
829
        <span class="permissioncode">([% name | html %])</span>
829
        <span class="permissioncode">([% name | html %])</span>
830
  [%# authentication_providers %]
831
    [%- CASE 'manage_authentication_providers' -%]
832
        <span class="sub_permission manage_authentication_providers_subpermission">
833
            Manage authentication providers
834
        </span>
835
        <span class="permissioncode">([% name | html %])</span>
830
  [%- END -%]
836
  [%- END -%]
831
[%- END -%]
837
[%- END -%]
832
- 

Return to bug 31378