Lines 63-69
if ( !$domain_ops && $op eq 'cud-add' ) {
Link Here
|
63 |
# Domain configuration params |
63 |
# Domain configuration params |
64 |
my $allow_opac = $input->param('allow_opac') // 0; |
64 |
my $allow_opac = $input->param('allow_opac') // 0; |
65 |
my $allow_staff = $input->param('allow_staff') // 0; |
65 |
my $allow_staff = $input->param('allow_staff') // 0; |
66 |
my $auto_register = $input->param('auto_register') // 0; |
66 |
my $auto_register_opac = $input->param('auto_register_opac') // 0; |
|
|
67 |
my $auto_register_staff = $input->param('auto_register_staff') // 0; |
67 |
my $default_category_id = $input->param('default_category_id'); |
68 |
my $default_category_id = $input->param('default_category_id'); |
68 |
my $default_library_id = $input->param('default_library_id'); |
69 |
my $default_library_id = $input->param('default_library_id'); |
69 |
my $domain = $input->param('domain'); |
70 |
my $domain = $input->param('domain'); |
Lines 84-93
if ( !$domain_ops && $op eq 'cud-add' ) {
Link Here
|
84 |
)->store; |
85 |
)->store; |
85 |
|
86 |
|
86 |
Koha::Auth::Identity::Provider::Domain->new( |
87 |
Koha::Auth::Identity::Provider::Domain->new( |
87 |
{ identity_provider_id => $provider->identity_provider_id, |
88 |
{ |
|
|
89 |
identity_provider_id => $provider->identity_provider_id, |
88 |
allow_opac => $allow_opac, |
90 |
allow_opac => $allow_opac, |
89 |
allow_staff => $allow_staff, |
91 |
allow_staff => $allow_staff, |
90 |
auto_register => $auto_register, |
92 |
auto_register_opac => $auto_register_opac, |
|
|
93 |
auto_register_staff => $auto_register_staff, |
91 |
default_category_id => $default_category_id, |
94 |
default_category_id => $default_category_id, |
92 |
default_library_id => $default_library_id, |
95 |
default_library_id => $default_library_id, |
93 |
domain => $domain, |
96 |
domain => $domain, |
Lines 118-124
elsif ( $domain_ops && $op eq 'cud-add' ) {
Link Here
|
118 |
my $allow_opac = $input->param('allow_opac'); |
121 |
my $allow_opac = $input->param('allow_opac'); |
119 |
my $allow_staff = $input->param('allow_staff'); |
122 |
my $allow_staff = $input->param('allow_staff'); |
120 |
my $identity_provider_id = $input->param('identity_provider_id'); |
123 |
my $identity_provider_id = $input->param('identity_provider_id'); |
121 |
my $auto_register = $input->param('auto_register'); |
124 |
my $auto_register_opac = $input->param('auto_register_opac'); |
|
|
125 |
my $auto_register_staff = $input->param('auto_register_staff'); |
122 |
my $default_category_id = $input->param('default_category_id') || undef; |
126 |
my $default_category_id = $input->param('default_category_id') || undef; |
123 |
my $default_library_id = $input->param('default_library_id') || undef; |
127 |
my $default_library_id = $input->param('default_library_id') || undef; |
124 |
my $domain = $input->param('domain'); |
128 |
my $domain = $input->param('domain'); |
Lines 128-141
elsif ( $domain_ops && $op eq 'cud-add' ) {
Link Here
|
128 |
|
132 |
|
129 |
Koha::Auth::Identity::Provider::Domain->new( |
133 |
Koha::Auth::Identity::Provider::Domain->new( |
130 |
{ |
134 |
{ |
131 |
allow_opac => $allow_opac, |
135 |
allow_opac => $allow_opac, |
132 |
allow_staff => $allow_staff, |
136 |
allow_staff => $allow_staff, |
133 |
identity_provider_id => $identity_provider_id, |
137 |
identity_provider_id => $identity_provider_id, |
134 |
auto_register => $auto_register, |
138 |
auto_register_opac => $auto_register_opac, |
135 |
default_category_id => $default_category_id, |
139 |
auto_register_staff => $auto_register_staff, |
136 |
default_library_id => $default_library_id, |
140 |
default_category_id => $default_category_id, |
137 |
domain => $domain, |
141 |
default_library_id => $default_library_id, |
138 |
update_on_auth => $update_on_auth, |
142 |
domain => $domain, |
|
|
143 |
update_on_auth => $update_on_auth, |
139 |
} |
144 |
} |
140 |
)->store; |
145 |
)->store; |
141 |
|
146 |
|