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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1268-1274 Returns the patron restrictions. Link Here
1268
1268
1269
sub restrictions {
1269
sub restrictions {
1270
    my ($self) = @_;
1270
    my ($self) = @_;
1271
    my $restrictions_rs = $self->_result->borrower_debarments;
1271
    my $restrictions_rs = $self->_result->restrictions;
1272
    return Koha::Patron::Restrictions->_new_from_dbic($restrictions_rs);
1272
    return Koha::Patron::Restrictions->_new_from_dbic($restrictions_rs);
1273
}
1273
}
1274
1274
(-)a/Koha/Schema/Result/Borrower.pm (+7 lines)
Lines 2061-2066 __PACKAGE__->many_to_many("permissions", "user_permissions", "permission"); Link Here
2061
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-10 17:43:30
2061
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-10 17:43:30
2062
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5hh2lGCcKclyTnY7KNPkvg
2062
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5hh2lGCcKclyTnY7KNPkvg
2063
2063
2064
__PACKAGE__->has_many(
2065
  "restrictions",
2066
  "Koha::Schema::Result::BorrowerDebarment",
2067
  { "foreign.borrowernumber" => "self.borrowernumber" },
2068
  { cascade_copy => 0, cascade_delete => 0 },
2069
);
2070
2064
__PACKAGE__->has_many(
2071
__PACKAGE__->has_many(
2065
  "extended_attributes",
2072
  "extended_attributes",
2066
  "Koha::Schema::Result::BorrowerAttribute",
2073
  "Koha::Schema::Result::BorrowerAttribute",
(-)a/Koha/Schema/Result/BorrowerDebarment.pm (-2 / +6 lines)
Lines 165-170 __PACKAGE__->belongs_to( Link Here
165
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-19 17:53:04
165
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-19 17:53:04
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kDCkA7XrjKXlrFG5lk8Lgg
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kDCkA7XrjKXlrFG5lk8Lgg
167
167
168
sub koha_objects_class {
169
    'Koha::Patron::Restrictions';
170
}
171
sub koha_object_class {
172
    'Koha::Patron::Restriction';
173
}
168
174
169
# You can replace this text with custom code or comments, and it will be preserved on regeneration
170
1;
175
1;
171
- 

Return to bug 31095