Lines 119-135
sub delete {
Link Here
|
119 |
} |
119 |
} |
120 |
|
120 |
|
121 |
return try { |
121 |
return try { |
122 |
my $error = DelAuthority( { authid => $authority->authid } ); |
122 |
DelAuthority( { authid => $authority->authid } ); |
123 |
|
123 |
|
124 |
if ($error) { |
124 |
return $c->render( status => 204, openapi => q{} ); |
125 |
return $c->render( |
|
|
126 |
status => 409, |
127 |
openapi => { error => $error } |
128 |
); |
129 |
} |
130 |
else { |
131 |
return $c->render( status => 204, openapi => "" ); |
132 |
} |
133 |
} |
125 |
} |
134 |
catch { |
126 |
catch { |
135 |
$c->unhandled_exception($_); |
127 |
$c->unhandled_exception($_); |
136 |
- |
|
|