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

(-)a/Koha/REST/V1/Patrons/Password.pm (-1 / +11 lines)
Lines 135-138 sub set_public { Link Here
135
    };
135
    };
136
}
136
}
137
137
138
sub owner_authorization {
139
    my ($c, $method, $user) = @_;
140
141
    if ($method eq 'set_public') {
142
        my $patron_id = $c->match->stack->[-1]->{'patron_id'};
143
        return $user->borrowernumber == $patron_id ? 1 : 0;
144
    }
145
146
    return 0;
147
}
148
138
1;
149
1;
139
- 

Return to bug 24067